Password Protect PDF

Post Reply
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

Password Protect PDF

Post by pcarvalho »

Is there a way of using switch to password protect PDF for print or edit?
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Password Protect PDF

Post by dkelly »

If the PDF only has an owner password and no open password then you can use one of several tools (qpdf, CPDF or PDF Enhancer) to decrypt and modify the security settings. You would have to either save the PDF without a password or know the existing password to re-encrypt it.
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

Password Protect PDF

Post by pcarvalho »

I don't want do print a password protected PDF.

I want to protect a PDF for print or edit using switch for this action
dkelly
TOP CONTRIBUTOR
Posts: 658
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Password Protect PDF

Post by dkelly »

same tools, just different options
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

Password Protect PDF

Post by pcarvalho »

I'm using PDF ToolKit but gives me the message "Can't find outputs for job [25.pdf]"



Can anyone tell me how Execute command works?

I'm newbie on Switch.


freddyp
Advanced member
Posts: 1022
Joined: Thu Feb 09, 2012 3:53 pm

Password Protect PDF

Post by freddyp »

In "Command or path" specify the complete path to the pdftk application. In "Arguments" you write



"%1" output "%2" owner_pw YourPassword



"%1" (do not forget the quotes to avoid problems with spaces in paths) points to the input file, "%2" to the output file, and because you want Switch to continue with the output file you should set "Output" to "File at path" with "Output extension - Automatic" because the output file has the same extension as the input file.



Freddy
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

Password Protect PDF

Post by pcarvalho »

Worked just fine.

Thanks for the help.
Post Reply