简体   繁体   English

Firebug 和 google 控制台都不允许更改通过 pdf.js 呈现的内容,为什么? 如何?

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

One can not change content (DOM elements) rendered through pdf.js using firebug and google.不能使用 firebug 和 google 更改通过 pdf.js 呈现的内容(DOM 元素)。 How pdf.js achieve this, how can I do the same in my html page pdf.js 如何实现这一点,我如何在我的 html 页面中做到这一点

PDF.js renders its output into different <canvas> elements (one per page). PDF.js 将其输出呈现为不同的<canvas>元素(每页一个)。 You can see a small preview of the canvas when using the Firefox DevTools:使用 Firefox DevTools 时,您可以看到画布的小预览:

在 Firefox DevTools 中预览画布输出

It still generates DOM elements, though, to allow interacting with the contents, ie selecting and copying them.但是,它仍然生成 DOM 元素以允许与内容交互,即选择和复制它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM