This topic is locked
[SOLVED]

 ViewerJS not working

4/30/2020 9:00:57 AM
PHPRunner General questions
need2sleep authorDevClub member

I was trying to configure viewing PDF files in the browser with the ViewerJS plugin using this article:
https://xlinesoft.com/blog/2015/10/21/adding-pdf-preview-support-to-your-web-application/
It seems the plugin is installed correctly, and works if I enter the direct link to the file. So my issue is with the viewer getting the correct file name or path. Is anyone able to make this work?
I'm wondering if it is the random serial generated on the file name or is it the path name that's causing the issues?
Any help would be appreciated. Thank you!

Admin 4/30/2020

Why not use a built-in 'View as' PDF option?

https://xlinesoft.com/phprunner/docs/view_as_pdf.htm

need2sleep authorDevClub member 4/30/2020

Hi Sergey,
This is where I started in the help manual and it was a bit confusing so after doing some more searching I thought that I needed the ViewerJS plugin to work.
From what I see in the manual. It mentions "View As" Settings but no such option exists to select PDF.
Also I'm not sure where I can click on "Add initialization script" button.

Admin 4/30/2020

Maybe you are using an older version of PHPRunner that didn't have this option?
Another option - something is not right with your PHPRunner installation and some plugins are missing. Do you see plugins like ColorPicker and SignaturePa under 'Edit as' settings?

mbintex 4/30/2020

It would be helpful, if the online HTML version of the documentation would mention, as of which version a feature is available. Took me a day to learn, that HideItem isn´t available in 9.8.

need2sleep authorDevClub member 4/30/2020



Maybe you are using an older version of PHPRunner that didn't have this option?
Another option - something is not right with your PHPRunner installation and some plugins are missing. Do you see plugins like ColorPicker and SignaturePa under 'Edit as' settings?


Thanks for mentioning this. I reinstalled PHPR10.4 and all the green puzzle pieces came back including the edit page.
Wow look at all these features!

Since I haven't been paying much attention to this section it could have been a coincidence but I recently uninstalled many old versions of PHPR and left 6.2 for memories sake because that's the first version I started lol.
Maybe the uninstaller took out more than it should have.

need2sleep authorDevClub member 4/30/2020



It would be helpful, if the online HTML version of the documentation would mention, as of which version a feature is available. Took me a day to learn, that HideItem isn´t available in 9.8.


That would be a good idea too.
I think it would be a great idea if the manual was sort of a wiki style so we could contribute and make edits to it as a community. There are things I find in the manual that might be outdated or workarounds that are now built in features etc where I could just jump in and make a quick change instead of do nothing about it. It would be very powerful if we could all contribute because it could help free up time for the developers to work on new features.