Adding .PDF Internally to a RhoMobile app.

Sean Kennedy -
1 MIN READ

As a Help Desk person I get some questions that are "Well we don't do that -- but this 3rd party app may help you."

And I got one today (Thanks Jeffery) and although I indicated that we don't support .PDF document viewing internal to a RhoMobile app environment -- this link to GITHUB was what I recommended.

Here is the Link: https://github.com/mozilla/pdf.js/

For those who would like to "KIOSK" an app and keep the user within the Application Interface UI/UX, downloading a document and then opening a second app poses some intrinsic security problems / issues.

So a 3rd party app like this fills that void.   (I am still testing the NODE.JS building from the github source -- but others have located / sourced the output pdf.js and pdf.worker.js  and included it in their solution.

The Web Server where the .PDF files were sourced upon, needed an "Access-Control-Allow-Origin" permission setup so that the files could be accessed.

-sean

profile

Sean Kennedy

Application Development Support - Zebra Help Desk (Level 3)

Please Register or Login to post a reply

Replies