How to remove security from a PDF file?

75

32

I am trying to fill out some docs, but the provided PDFs are "SECURED", meaning I can't use FoxIt's typewriter tools.

Is there any way to remove the security?

AngryHacker

Posted 2010-08-22T16:52:21.013

Reputation: 14 731

1

For Linux users, Thebozo Already answered this question here: http://superuser.com/a/367356/278746

– Hello World – 2014-08-10T13:48:31.207

1http://gallery.technet.microsoft.com/PDF-Unlocker-Ease-Up-The-e904178f – Sathyajith Bhat – 2013-02-06T07:58:51.023

1What I understand is that these pdfs are signed - in acrobat all you need to do is remove the signature and then they will be editable (as it would be invalid after editing). Suppose foxit will have a similar feature. – bdecaf – 2013-09-18T09:48:49.533

Answers

37

Contrary to the other solutions, you do not need additional software.

Anyone with Windows can do it with no extra software in 4 simple steps.

  1. Open the PDF
  2. Go to File > Print. From your print options choose Microsoft XPS Document Writer. Although you might expect it to print, it does not print anything, it will create an XPS Document.
  3. Open the resulting XPS file
  4. Press Print, go to Microsoft PDF Creator. It will now save it as a PDF again. Again, it will not print.

In my case I had to remove the first/last page of a document so I only printed the pages required.

Eoin

Posted 2010-08-22T16:52:21.013

Reputation: 558

1I love this idea and worked for me. Only issue was the quality change in conversion to XPS and back to PDF. It would be just specific to my document, though. – fatih_dur – 2016-08-24T13:16:33.667

Interesting, I have also found the MS PDF creator to be a bit pants. I use the Adobe PDF creator, although I believe it came with Adobe Creative Suite so not everyone will have a copy (could be wrong). – Eoin – 2016-08-24T13:36:01.460

2This approach worked for me, by opening it in Chrome, printing, choosing 'Print to PDF' and then opening the outputted PDF. – jonathanconway – 2016-08-31T03:17:00.407

I do not use the MS PDF creator I use the Adobe one but I assume not everyone has this so I didn't use it in my example. If you have it or can find it to install then I would advise that it is slightly better (although not perfect). – Eoin – 2017-06-07T15:19:10.503

5The major downside of this is that you cannot mark or copy text anymore. – basseur – 2018-05-08T09:49:55.547

I was unaware of that, good point. In any case copying from PDF is a bit rubbish. – Eoin – 2018-05-08T09:52:29.400

If anyone knows if this works on Mac let me know and I'll update my answer. – Eoin – 2018-12-27T16:03:14.910

74

Assuming it's simply a 'rights' (owner) password that restricts things like editing, printing, and copying (i.e. the password does not need to be entered to open the file) the following will remove the restrictions:

  1. Grab https://github.com/qpdf/qpdf/releases
  2. Unzip/Install and navigate to the bin folder that holds qpdf.exe (or similar for your platform)
  3. Place the PDF you wish to work on in the same folder
  4. Run: qpdf --decrypt InputFile.pdf OutputFile.pdf (use "s if the file name has spaces).
  5. Do what you like with the OutputFile.

If your PDF file is user password protected, change step 4 to qpdf --decrypt --password=yourpassword InputFile OutputFile

This won't work for Adobe Digital Editions and may have issues with digitally-signed files.

Some discussion on the background of these owner password restrictions at https://lwn.net/Articles/335415/ .

Dan

Posted 2010-08-22T16:52:21.013

Reputation: 871

3qpdf work well for me. I can install it in OS X using homebrew. – Donny Kurnia – 2015-10-06T15:15:38.757

I had to use qpdf then PDFcreator to enable edits on one PDF document. (PDFcreator without qpdf first wouldn't work). It was a document both password-protected and certified. Using the save as .ps trick didn't work. (I couldn't compare against unlock PDF websites as the document was confidential.) – Franck Dernoncourt – 2017-01-11T17:57:38.840

Works fantastic on government-issued W-9 form. Genius bureaucrats locked down the PDF so you can't apply a signature through Foxit, but this fixes it! – HerrimanCoder – 2017-11-30T00:00:26.290

Worked like a charm on some PDFs that are licensed CC but for some reason then secured. Now I can annotate! – Luis Antolín Cano – 2018-05-03T17:08:14.407

35

  1. Print to a PostScript (PS) printer (where the printer's port is set to print to file, not to the printer -- or check the "Print to file" option in the Print dialog)
  2. Edit the resulting .ps file and remove:

    mark currentfile eexec
    54dc5232e897cbaaa7584b7da7c23a6c59e7451851159cdbf40334cc2600
    ...
    cleartomark
    
  3. Save and distill the .ps file

vladr

Posted 2010-08-22T16:52:21.013

Reputation: 448

I've used this trick before, but now I don't remember how I managed to convert to .ps. :( – Isaac Kleinman – 2014-10-28T21:16:37.590

mark currentfile eexec 54dc5232e897cbaaa7584b7da7c23a6c59e7451851159cdbf40334cc2600-These are not present in a pdf version 1.3 (Acrobat 4.x) digitally signed file. It was decrypted with qpdf. But the sign is still there and prevents editing. – Joel G Mathew – 2017-10-15T02:19:44.020

Works for me. I have scripted it here: http://andorian.blogspot.ie/2014/05/redistilling-pdfs-that-are-not-portable.html

– Lmwangi – 2014-05-19T15:37:37.203

11

Easy!

  1. From the full version of Acrobat (I used v9.3), select "File..Export..Postscript..Postscript". This creates a ".ps" file.
  2. Click on the .ps file, it converts it back to pdf automatically with Acrobat distiller.
  3. You now have a perfect copy of the original file, minus any signatures, restrictions on editing, etc.

I needed this technique fix the pdf file so it would display on my Kindle DX, via the "Advanced..Preflight" menu. This method worked perfectly on a file that had resisted all attempts by the four major utilities that offer to remove restrictions on pdf files (i.e. A-PDF, pdftk, Kernel PDF, UnrestrictPDF) .

Contango

Posted 2010-08-22T16:52:21.013

Reputation: 1 099

By full version of Acrobat do you mean the paid version? – Eoin – 2018-06-20T21:58:37.280

5Nope, this didn't work for me... Got this error:

This PostScript file was created from an encrypted PDF file. Redistilling encrypted PDF is not permitted.

Looks like they caught up with this trick. – Jon – 2012-04-27T13:03:20.497

7

This site unlocked a PDF for me.

https://www.pdfunlock.com/

– Jon – 2012-04-27T13:10:14.293

8

Directly (see and) remove the restrictions from your pdf without any tricks:


1- Online method:

If you want to do in your browser (without installing a tool), then use PDFUnlock. You just need to upload your pdf (drop it to the available box) and it removes the security restrictions. However, up to 5MB files are converted for free.


2- Offline method:

But, like me, if you prefer having an offline tool on your machine, then you can install Weeny Free PDF Password Remover.

Alisa

Posted 2010-08-22T16:52:21.013

Reputation: 229

The PDFUlock website reported "The uploaded file is not secured and does not have any restrictions that can be removed" even though FoxIt reader declares my PDF "SECURED" and disables comments. – Jess Riedel – 2017-08-24T15:40:42.183

2Weeny soft PDF Password remover tool worked great for me! I have tried 6 others before this: PDF Password Recovery, Instant PDF Remover, PDF Password Remover, GuaPDF, PDF Crack, the expensive Wondershare PDF Remover, which worked.. others did not. – Craig Lambie – 2017-12-21T03:45:09.837

6

Using google chrome offline (without uploading anything)

It's a slightly old thread but as I use this often, I wanted to update it:

  • Simply drag and drop the PDF in question on a blank chrome page.
  • Chrome opens the "locked" PDF.
  • Now print the document and use "save as PDF" as the printer of choice.
  • Enjoy your perfectly conserved and unlocked PDF (esp. copy & paste ;-) )

The "print"->"save as" step can be tricky when you do it the first time, as you might choose the PDF Writer/Maker for output and you will end up with a locked PDF again.

The process is further described here: Save As PDF

On some versions of chrome (older?) you have to activate the "save as PDF" option first.

As you can install chrome without giving them your email address, I would consider this a truly "free" solution.

Xan-Kun Clark-Davis

Posted 2010-08-22T16:52:21.013

Reputation: 397

Doesn't work any more. – chrisdrobison – 2018-03-24T23:04:47.690

4

I upload it to google drive with chrome, hit the print button and save it as pdf (which has to be enabled within chrome settings on some versions). I get the real deal, images are same resolution, file size checks out too, but all the security restrictions are gone.

Thanks Google! You guys are hackers :-)

Xan-Kun Clark-Davis

Posted 2010-08-22T16:52:21.013

Reputation: 397

Why is this downvoted? – Eoin – 2016-08-24T13:37:14.597

1Yeah, I would also be very interested. As a matter of fact, I had some tricky PDFs with images and vectorgraphics and I tried all "free" solutions (most of them aren't really free, it's mostrly trials and crippleware) and none of them worked. Maybe the purely commercial ones are so much better (don't forget, the Microsoft XPS Document Writer is the contrary of free and you better habe a valid MS License whe you export it, as it will be in your resulting PDF, along with your name and other "useful" stuff.) Then I tried the google way and it worked like a charm for all PDFs so far. – Xan-Kun Clark-Davis – 2016-09-01T22:00:41.403

4

The best option I have found is this online tool: https://smallpdf.com/unlock-pdf

Edit: they now have a desktop application too. https://smallpdf.com/desktop

Sнаđошƒаӽ

Posted 2010-08-22T16:52:21.013

Reputation: 278

Thank you, that was the only thing that worked for me. Many other solutions rely on being able to print the PDF, but some protected PDFs can't be printed. – Oleksiy – 2018-04-02T07:07:26.667

Glad it helped. Grateful to the guys who made that tool too :-) – Sнаđошƒаӽ – 2018-04-02T09:09:15.287

Didn't work for me. Document was viewable in Reader, but its document properties couldn't be changed, which is what I wanted to do. SmallPDF appeared to open it, but displayed nothing. – enigment – 2019-05-16T15:36:35.667

2

Analog conversion. Print and re-scan.

easyegoism

Posted 2010-08-22T16:52:21.013

Reputation: 89

Hmmmm ... even if you wanted to go that way, isn't it easier to just "Print to PDF" from the full version of Acrobat? However, this ruins the margins, so you get a perfect conversion if you export to Postscript, then reimport to pdf (see my answer below)? – Contango – 2010-09-03T08:58:05.733

@gravitas That's only easier if you've paid for the full version of Acrobat, as the questioner is talking about FoxIt I'd assume they haven't got Acrobat Pro. – GAThrawn – 2010-09-03T12:07:11.130

2

Removing user/open password is next to impossible, but if your PDF file is only protected with owner password, i.e., PDF print, edit, copy and other functions are disabled then there are several programs available to remove PDF security like the one mentioned in this article: http://www.instructables.com/id/How-to-Remove-PDF-Password-Security-PrintEditCo/

Due to security and privacy reasons I would not recommend those online services where you’re supposed to upload your PDF documents to remove PDF security.

Andrew Sarris

Posted 2010-08-22T16:52:21.013

Reputation: 35

1

In my case, there was a view password that maintained its state through save -- but print, etc. were not blocked. That left open the analog method, or print-to-PDF-printer, which is what I did. The resulting file lacked a password, and seemed to suffer no degradation.

Michael Paulukonis

Posted 2010-08-22T16:52:21.013

Reputation: 1 749