User Tools

Site Tools


store a pdf without password

tags | remove password pdf

qpdf --password=YOURPASSWORD --decrypt input.pdf output.pdf

If the password has some special characters, quote it.

qpdf --password="YOURPASSWORD" --decrypt input.pdf output.pdf
pdftk secured.pdf input_pw YOURPASSWORD output unsecured.pdf

Note:- If possible switch to using qpdf instead of pdftk. There were couple of instances where the pdftk command failed and qpdf succeeded.

Ref:- - Mentions qpdf; gives more alternatives.

make two copies of the same document

pdftk in.pdf cat 1-end 1-end output out.pdf

See also: - has a script to duplicate it by page (as in 1,1,2,2,…)

pdftk_notes.txt · Last modified: 2021/12/04 00:20 by raju