Wednesday, February 24, 2010

Strip Owner Password from Encrypted PDF

This handy dandy command script will allow you to strip the owner password out of a pdf file:

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf

Works in linux, mac and cygwin.

Alternately, you can crack the owner or user password from a pdf file using the open source utility PDFCrack:

http://pdfcrack.sourceforge.net/

Additionally, you can remove copy/print/save security from a PDF via Ensode's handy online tool over at: http://www.ensode.net/pdf-crack.jsf

No comments:

Post a Comment