I have a PDF file I want to show in a form. I see that NG client has a web-component, svyPDFViewer. But, I’m using the webclient.
I’ve tried using a HTML_AREA with
Doesn’t seem like there is an easy way to do this in the webclient.
So, my alternative was to open the PDF in a new browser window with:```
application.showURL(fileName, “_blank”, ‘height=700,width=1000,status=no,toolbar=no,menubar=no,location=no,resizable=yes’);
Placed the file in the folder: {servoy_install_path}\application_server\server\webapps\ROOT\servoy-webclient.
The PDF does not contain sensitive data.
Hi Paul,
You can flag the HTML_AREA with the TRUST_DATA_AS_HTML property and then what you tried in your original example should work. In the onLoad event for the form you simply put:
elements.HTMLAreaElementName.putClientProperty(APP_UI_PROPERTY.TRUST_DATA_AS_HTML, true);
Hope this helps.
Steve