Customizable Embedded PDF Viewer?

Hi!

For the app I am working on I need to embed PDFs (later on also XML docs) in a frame within the app. Currently I just have them embedded with the generic PDF embedding feature, but I need a more customizable PDF viewer so I can ensure the same features and design will show up no matter where the page will be opened. To be precise I need to be able to display a Table of Contents/Bookmarks tab, so users can conveniently move between chapters and I need a search function embedded in the PDF viewer as well. Ideally it should also be possible to remove the “export” button and to adapt the UI to my app design.

I found a solution with JS. Apparently Mozilla’s PDF.js would be a good solution to my issues (http://mozilla.github.io/pdf.js/). Unfortunately I only know very basic HTML and CSS and I don’t know how to compile a plugin from the github source provided above.

Can anyone help me there? Does anyone have better ideas about how to solve the issue?

Bonus question: Ideally I would like to be able to convert my web app to a native iOS app as well, with offline PDF reading capability. Anyone know how I could do that?

Many thanks!

Leo.

3 Likes

I’m suffering with this as well. I’m trying to make a plugin to make available the PDF.js library. I can’t make accesses the canvas element using javascript with document.getElementById function. With someone could help with this, will be great!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.