Remove PDF Password

From How to crack password-protected PDF’s,

$ pdftops original.pdf cracked.ps

$ pstopdf cracked.ps cracked.pdf

It does lose the TOC, though that can be restored with JPDFBookmarks,

$ jpdfbookmarks_cli original.pdf –dump –out bookmarks.txt

$ jpdfbookmarks_cli cracked.pdf –apply bookmarks.txt –out crackedWithBookmarks.pdf

 Too easy.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s