I want to be able to open a pdf in a tiny window on a grid. I am using pdf.js and I have installed it in my external library. I just cant seem to be able to get the specific pdf I want to be able to open. Any help would be much appreciated.
It works for me, i added a field document1 to the table. In the on record event I have put this code :
<a href=$string_link class=scButton_small target=_blank title=Document style=vertical-align: middle; display:inline-block; border: 1px solid black>Document
the string link is a variable that references to the document https://www.yourdomain.us/_lib/file/doc/document_name
I had a problem displaying my html code. So had to remove all the quotes and double quotes.
hi roelof,
can you show me your exact code to display the target file…
thanks
Joey
First step is download the pdfjs code and place the two folders in a pdfjs folder in the root of you application. In a form or grid application you create a label field document1. In the event you can place the code <a href=$string_link class=scButton_small target=_blank title=Document style=vertical-align: middle; display:inline-block; border: 1px solid black>Document
the string link is a variable that references to the document [https://www.yourdomain.us/_lib/file/doc/document_name ]
This should be enough to get it working. It even works on my Android mobile.
See also this demo: Login
Log in with demo/demo. (Sorry i lost the last two documents, I will replace them next week)
Roelof
I tried but this error occured when running the application
Parse error: syntax error, unexpected token “<” in C:\Program Files\NetMake\v9-php81…