Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing PDF password protection, knowing the password [closed]

I have a bunch of pdf's I want to remove passwords from. Note that I know the password, so no need for brute forcing. I am working on a mac, so I would like to make an app to remove those passwords.

I have seen apps like wondershare's pdf password remover, so I know it is possible.

Is there a solution/library in the obj-c environment to remove passwords from PDF's?

like image 362
chrs Avatar asked Jul 12 '13 11:07

chrs


2 Answers

ok. Here is the easy solution.

  1. Open the pdf with google chrome.
  2. Enter the password.
  3. Print document using ctrl+p.
  4. Choose Save as pdf option.

Done.

like image 98
Vaibhav Jain Avatar answered Nov 15 '22 05:11

Vaibhav Jain


I think this would work for you. Both answers seem valid, I personally would opt for the second one.

Transcribed:

do shell script "pdftk secured.pdf input_pw foopass output unsecured.pdf"

like image 35
Mattiavelli Avatar answered Nov 15 '22 05:11

Mattiavelli