Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Jun 10, 2021

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #414

@danxuliu
Copy link
Member

/compile amend /

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]>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the backport/414/stable20 branch from e129751 to 9a61d15 Compare June 10, 2021 14:07
@danxuliu
Copy link
Member

The feature was introduced in pdf.js 2.5.207 but stable20 has pdf.js 2.4.456.

@danxuliu danxuliu closed this Jun 10, 2021
@danxuliu danxuliu deleted the backport/414/stable20 branch June 10, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants