Firebug and google console both does not let change content rendered through pdf.js why ? and how?

33 Views Asked by At

One can not change content (DOM elements) rendered through pdf.js using firebug and google. How pdf.js achieve this, how can I do the same in my html page

1

There are 1 best solutions below

0
Sebastian Zartner On

PDF.js renders its output into different <canvas> elements (one per page). You can see a small preview of the canvas when using the Firefox DevTools:

Preview of canvas output in Firefox DevTools

It still generates DOM elements, though, to allow interacting with the contents, i.e. selecting and copying them.