Pdf.js: Where can i find the conversion section from PDF to HTML?

Created on 3 May 2019  路  1Comment  路  Source: mozilla/pdf.js

I'm working on a PDF Inspector, I found the HTML output in PDF.js very suitable for my case
so I'm wondering where can I find the conversion section from PDF to HTML?

Most helpful comment

PDF.js doesn't generate HTML, but draws the contents on a canvas element. This is done in https://github.com/mozilla/pdf.js/blob/master/src/display/canvas.js. There is also a back-end that draws the contents as SVG instead, which is available at https://github.com/mozilla/pdf.js/blob/master/src/display/svg.js.

>All comments

PDF.js doesn't generate HTML, but draws the contents on a canvas element. This is done in https://github.com/mozilla/pdf.js/blob/master/src/display/canvas.js. There is also a back-end that draws the contents as SVG instead, which is available at https://github.com/mozilla/pdf.js/blob/master/src/display/svg.js.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BrennanDuffey picture BrennanDuffey  路  3Comments

dmisdm picture dmisdm  路  3Comments

SehyunPark picture SehyunPark  路  3Comments

timvandermeij picture timvandermeij  路  4Comments

patelsumit5192 picture patelsumit5192  路  3Comments