Follow all the steps in the previous post, except name the action Decrypt and replace the cmd.exe arguments in step 4 with:
C:\windows\system32\cmd.exe
/C C:\windows\system32\pdftk.exe "%1" input_pw PROMPT
output "%1.decrypted.pdf"
To allow readers to . . . | Apply this pdftk permission |
---|---|
Print—pages are top quality | Printing |
Modify page or document contents,insert or remove pages, rotate pages or add bookmarks | ModifyContents |
Copy text and graphics from pages, extract text and graphics data for use by accessibility devices | CopyContents |
Change or add annotations or fill form fields with data | ModifyAnnotations |
Reconfigure or add form fields | ModifyContents and ModifyAnnotations |
All of the above | AllFeatures |
To allow readers to . . . | Apply this pdftk permission |
---|---|
Print—pages are top quality | Printing |
Print—pages are of lower quality | DegradedPrinting |
Modify page or document contents, insert or remove pages, rotate pages or add bookmarks | ModifyContents |
Insert or remove pages, rotate pages or add bookmarks | Assembly |
Copy text and graphics from pages | CopyContents |
Extract text and graphics data for use by accessibility devices | ScreenReaders |
Change or add annotations or fill form fields with data | ModifyAnnotations |
Fill form fields with data | FillIn |
Reconfigure or add form fields | ModifyContents and ModifyAnnotations |
All of the above, and top-quality printing | AllFeatures |
Comparing these two tables, you can see that Assembly is a weaker version ofModifyContents and FillIn is a weaker version of ModifyAnnotations.
DegradedPrinting sends pages to the printer as rasterized images, whereas Printing sends pages as PostScript. A PostScript stream can be intercepted and turned back into (unsecured) PDF, so the Printing permission is a security risk. However, DegradedPrinting reduces the clarity of printed pages, so you should test your document to make sure DegradedPrinting yields acceptable, printed pages.
After setting these permissions and/or a user password, changing them requires the owner password, if it is set.
The user password, if set, is necessary for viewing the document pages. The PDF encryption key is derived from the user password, so it really is required. When a PDF viewer tries to open a PDF that was secured with a user password, it will prompt the reader to supply the correct password.
The owner password, if set, is necessary for changing the document security settings. A PDF with both its user and owner passwords set can be opened with either password, so you should choose both with equal care.
An owner password by itself does not provide any real PDF security. The content is encrypted, but the key, which is derived from the (empty) user password, is known. By itself, an owner password is a polite but firm request to respect the author's wishes. A rogue program could strip this security in a second.
Providing useful tips and tricks for Adobe's PDF files usage