2.qpdf - The qpdf program is used to convert one PDF file to another equivalent PDF file.
3.xpdf-utils - Portable Document Format (PDF) suite -- utilities such as pdftops and ps2pdf.
1.pdftk:
download
$ sudo apt-get install pdftkdecrypt
$ pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HEREOR
$ pdftk input.pdf output output.pdf user_pw YOURPASSWORD-HERE owner_pw YOURPASSWORD-HEREOR
$ pdftk input.pdf output output.pdf input_pw YOURPASSWORD-HEREWHERE
input_pw password : Input PDF owner passwords
user_pw password : Input PDF user passwords
owner_pw password : Input PDF owner passwords same as input_pw.
2.qpdf:
download
$ sudo apt-get install qpdfdecrypt
$ qpdf --password=YOURPASSWORD-HERE --decrypt input.pdf output.pdf
3.xpdf-utils:
$ sudo apt-get install xpdf-utilsdecrypt and create a postscript file
$ pdftops -upw YOURPASSWORD-HERE input.pdfconvert postscript to PDF
$ ps2pdf input.ps
reference: HowTo: Linux Remove a PDF File Password Using Command Line Options
沒有留言:
張貼留言