Copy link to clipboard
Copied
Is there a way how to protect pdf from copying the text and even protect from taking the screenshots?
Copy link to clipboard
Copied
Screenshots, for sure, no. And if you could turn off screeshots, people can photograph the screen, or use a video capture device.
Copy link to clipboard
Copied
Regarding preventing copying, yes there are a few options.
PDF Tools API has a Protect with owner password that allows you to set which permissions you want to have on the PDF.
// Create new permissions instance and add the required permissions
const protectPDF = PDFToolsSdk.ProtectPDF,
protectPDFOptions = protectPDF.options,
permissions = protectPDFOptions.Permissions.createNew();
permissions.addPermission(protectPDFOptions.Permission.PRINT_LOW_QUALITY);
permissions.addPermission(protectPDFOptions.Permission.EDIT_DOCUMENT_ASSEMBLY);
permissions.addPermission(protectPDFOptions.Permission.COPY_CONTENT);
// Build ProtectPDF options by setting an Owner/Permissions Password, Permissions,
// Encryption Algorithm (used for encrypting the PDF file) and specifying the type of content to encrypt.
const options = new protectPDFOptions.PasswordProtectOptions.Builder()
.setOwnerPassword("password")
.setPermissions(permissions)
.setEncryptionAlgorithm(protectPDFOptions.EncryptionAlgorithm.AES_256)
.setContentEncryption(protectPDFOptions.ContentEncryption.ALL_CONTENT_EXCEPT_METADATA)
.build();
It is also available via Microsoft Power Automate.
Regarding screenshotting, there isn't anything that we can necessarily prevent screenshots. Adobe PDF Embed API doesn't have anything to prevent that. Screenshots are on an OS level which means that it is a limitation for any browsers or viewers.
Copy link to clipboard
Copied
Thank you for your time. I will try the options you suggested above.
Regards,
Himakara