Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disable content copy for PDF files that specify it
In v2.5.207 pdf.js added the "enablePermissions" option to disable
copying in the viewer for the PDF files that specify it. The option is
off by default, so it needs to be explicitly enabled.

Note that the content copy is prevented just by disabling selection
through CSS. The "selection disabled" flag in a PDF document is not a
strong security measure and can be easily circumvented (for example,
just downloading the file and opening it in a PDF reader that does not
honour the flag), so disabling the selection through CSS was deemed good
enough for pdf.js.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Jun 9, 2021
commit e9893a8bad3240f456fb9d39aed3fcc067ecd19b
Loading