Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I need to remove some restrictions from a .pdf document:

enter image description here

I can't zoom or use any other buttons. The toolbar just isn't available. I never saw a .pdf file like this one.

share|improve this question

marked as duplicate by DavidPostill, fixer1234, mdpc, Excellll, Kevin Panko Feb 10 '15 at 4:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Point us to a PDF link if you want a remotely useful answer. – Mike Fitzpatrick Nov 14 '10 at 11:53
    
If the PDF is protected, there's very little you can do to unprotect it. – user3463 Nov 14 '10 at 21:02
    
You can try this if the PDF has permission pswd => gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword=123456 -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile=OUTPUT.pdf INPUT.pdf – dns Nov 4 '15 at 13:23

You have two options:

  • with ghostscript:

    gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=%stdout% -c .setpdfwrite -f locked.pdf > unlocked.pdf
    
  • with pdf2ps and ps2pdf (slower):

    pdf2ps locked.pdf - | ps2pdf - unlocked.pdf
    

    If the unlocked PDF contains error, try to decompose the commands (ps2pdf have sometimes problems with a streamed input):

    pdf2ps locked.pdf unlocked.ps
    ps2pdf unlocked.ps unlocked.pdf
    
share|improve this answer
    
Alternatively => gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sFONTPATH=%windir%/fonts;xfonts;. -sPDFPassword=123456 -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile=OUTPUT.pdf INPUT.pdf – dns Nov 4 '15 at 13:22

Not the answer you're looking for? Browse other questions tagged .