User Tools

Site Tools


pdftk_notes

This is an old revision of the document!


store a pdf without password

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

pdftk secured.pdf input_pw foopass 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.1620333499.txt.gz · Last modified: 2021/05/06 20:38 by raju