User Tools

Site Tools


pdftk_notes

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:- https://www.cyberciti.biz/faq/removing-password-from-pdf-on-linux/ - 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: https://superuser.com/questions/600877/how-do-i-duplicate-pages-within-pdf-files-automatically - 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