Lock PDF

Post Reply
schmitzdp
Member
Posts: 55
Joined: Thu Aug 06, 2020 1:36 pm

Lock PDF

Post 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
User avatar
tdeschampsBluewest
Member
Posts: 132
Joined: Tue Jun 01, 2021 11:57 am

Re: Lock PDF

Post 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.
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
Post Reply