Page 1 of 1

Svy PDF Viewer Plugin

PostPosted: Fri Jul 07, 2017 4:09 pm
by Thomas.shuttleworth
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?

Thanks in advance.

Thomas.

Re: Svy PDF Viewer Plugin

PostPosted: Fri Jul 07, 2017 4:20 pm
by Thomas.shuttleworth
I should add that I downloaded the example solution for the plugin and ran into the same errors in that solution too.

Re: Svy PDF Viewer Plugin

PostPosted: Tue Jul 18, 2017 3:34 pm
by Thomas.shuttleworth
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.

Re: Svy PDF Viewer Plugin

PostPosted: Wed Jul 04, 2018 10:13 pm
by habib
I am also wondering how to get the pdf viewer working on mobile. Usually there is a blank where the pdf viewer is supposed to be.

Re: Svy PDF Viewer Plugin

PostPosted: Thu Jul 05, 2018 7:04 am
by rvanderburg
What does not work?
At demo.servoy.com PDF viewer seems to work fine on mobile?

Re: Svy PDF Viewer Plugin

PostPosted: Thu Jul 05, 2018 2:57 pm
by habib
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.

Re: Svy PDF Viewer Plugin

PostPosted: Thu Jul 05, 2018 3:19 pm
by sean
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

Re: Svy PDF Viewer Plugin

PostPosted: Thu Jul 05, 2018 3:40 pm
by habib
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?