-1

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

Kuldeep Dangi
  • 4,126
  • 5
  • 33
  • 56
  • some dumb people downvote a question just because they can not understand it – Kuldeep Dangi Feb 23 '18 at 11:11
  • I guess you are talking about the [Firefox DevTools](https://developer.mozilla.org/en-US/docs/Tools), because [Firebug is dead](https://hacks.mozilla.org/2017/10/saying-goodbye-to-firebug/) for quite some time now. – Sebastian Zartner Mar 05 '18 at 09:57

1 Answers1

0

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.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132