I installed the PDF viewer plugin to try it out and have run into some problems.
I saw the webinar that covered this plugin and tried to achieve something similar, just an input where the user can type the location of the PDF and for that PDF to be display when a button is pressed.
From what I can tell from the errors i’m getting, and considering how bare bones the solution i’m using this in is, there’s an issue with the functions called by the pdf viewer element.
Is there some way I can find these functions so that I can check what might be causing the problem?
I’m not sure what ended up fixing the problem, I started Servoy the next day and the example solutions ran exactly as expected. I was now wondering if anyone has managed to get the PDF Viewer to work on mobile? Specifically, i’m hoping to have a PDF Viewer on a phonegap app i’ve been working on.
When i place a pdfviewer component into a form, the pdf viewer works as intended on desktop. When I attempt to use chrome developer tool and switch to mobile view, and then try to use the pdfviewer, i get a blank. Manipulating the dimensions in mobile view returns the same blank. When I switch to desktop view, it works as intended.
Hi Habib,
I cannot reproduce this problem. In both IOS chrome and desktop chrome with dev tools set to mobile viewports, the PDF renders.
Can you please try https://demo.servoy.com
Select “Specialized Components” > PDF.js
Try it from your phone / chrome dev tools mobile viewports
The pdf renders on the link you showed me with chrome dev tools, sizing issues notwithstanding. On the add component tab in the servoy form builder there are two variations of the pdf viewer. Would it possibly render on my end if I used the pdfJsViewer?