User Tools

Site Tools


pdftk_notes

This is an old revision of the document!


rotate pages by 180 degrees

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

Ref:- https://people.uleth.ca/~daniel.odonnell/blog/rotating-one-or-more-pages-in-a-pdf-in-linux - where I found the above solution.

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.1655957169.txt.gz · Last modified: 2022/06/23 04:06 by raju