Page 1 of 1
Lock PDF
Posted: Wed Jun 25, 2025 3:49 pm
by schmitzdp
Hello,
Is there an action that locks the pdf for editing but not for printing ?
(without used the paid App PDFCrypt (
https://www0.enfocus.com/en/appstore/product/pdfcrypt)
Thanks
Re: Lock PDF
Posted: Tue Jul 01, 2025 12:12 pm
by tdeschampsBluewest
You can install PDFtk (
https://www.pdflabs.com/tools/pdftk-server/) on your server, and use the following command, with run command app :
Code: Select all
pdftk.exe "%%InputFilePath%%" output "[Job.NameProper].pdf" owner_pw "1512!" user_pw "1234" allow Printing
Here is a quote from the documentation, for the permission
[ allow < permissions > ]
Permissions are applied to the output PDF only if an encryption strength is specified or an owner or user password is given. If permissions are not specified, they default to ’none,’ which means all of the following features are disabled.
The permissions section can include one or more of the following features:
Printing – Top Quality Printing
DegradedPrinting – Lower Quality Printing
ModifyContents – Also allows Assembly
Assembly
CopyContents – Also allows ScreenReaders
ScreenReaders
ModifyAnnotations – Also allows FillIn
FillIn
AllFeatures – Allows the user to perform all of the above, and top quality printing.