I have found a way to show PDF in Servoy Webclient.
I show the PDF in a embedded PDF reader. (this works on Windows and MAC OSX)
How to:
1. Create a global variable and define it as a Media field
2. Place the variable on a form and set the displayType to "HTML_AREA"
With the following code you can show a PDF in this HTML_AREA:
- Code: Select all
globals.variable = "<embed src=\"/PATH/TO/PDF/FILE.pdf#toolbar=1&navpanes=0\" width=\"100%\" height=\"100%\"></embed>"
I have tested this with Servoy 4.1.3 on the following browsers
Windows:
- Firefox
IE Explorer
MAC OSX:
- Firefox (you need a google plugin to use it http://code.google.com/p/firefox-mac-pdf/)
Safari
Kind Regards,
René van Veen
Ambitius