PDF

From miki
Revision as of 11:46, 1 October 2008 by Mip (talk | contribs) (New page: == PDF == * Use <tt>pdftops</tt> (package <tt>xpdf</tt>) to remove password from a protected PDF: <source lang="bash"> pdftops -upw <password> <encrypted>.pdf <decrypted>.ps ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PDF

  • Use pdftops (package xpdf) to remove password from a protected PDF:
pdftops -upw <password> <encrypted>.pdf <decrypted>.ps              # To generate a PostScript file (e.g. for further editing)
pdftops -upw <password> <encrypted>.pdf -|ps2pdf - <decrypted>.pdf  # To generate a new PDF
  • An other solution is to use PDF Toolkit pdftk:
!!! Update: pdftk seems to have a bug that prevent it to remove password from recent PDFs.
pdftk <encrypted>.pdf input_pw <password> output <decrypted>.pdf