Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无法使用 firebug 和 google 更改通过 pdf.js 呈现的内容(DOM 元素)。pdf.js 如何实现这一点,我怎样才能在我的 html 页面中做同样的事情
PDF.js 将其输出呈现为不同的<canvas>元素(每页一个)。使用 Firefox DevTools 时,您可以看到画布的小预览:
<canvas>
但是,它仍然会生成 DOM 元素以允许与内容交互,即选择和复制它们。