Skip to content Skip to sidebar Skip to footer

Embedding Pdf Into Html5 Pages With A Customed Interface, Still Being Interractable

So, I need a way to simply implement .pdf into html5 pages. Unfortunatly, , , etc. renders messy and unpractical pdf. (And it's ugly). I tried to use pdf.js, but it seems too big,

Solution 1:

I suggest you to bringup your software following these guidelines (in order to NOT use PDF.js...it is complex and very slow).Your software will be fast and cross-platform performance indipendent

  1. Create a page that read an input parameter (filename on local filesystem)
  2. Pass to the page the PDF you want to view
  3. On server side, read the file and convert to svg (1 per page). I can suggest you pdf2svghttps://github.com/dawbarton/pdf2svg
  4. The same page has to output an HTML page containing the created SVG images formatted with you CSS rules like you want

Finally, you can start to work on toolbar,functionality, etc...

Post a Comment for "Embedding Pdf Into Html5 Pages With A Customed Interface, Still Being Interractable"