pdfjam

How to add footer to pdf with pdfjam or pdftk?

萝らか妹 提交于 2021-01-28 19:56:21
问题 I am using a shell script to modify many pdfs and would like to create a script that adds the page number (1 of X format) to the bottom of PDFs in a directory along with the text of the filename. I tried using pdfjam with this format: pdfjam --pagenumbering true but it fails saying undefine pagenumbering Any other recommendations how to do this? I am OK installing other tools but would like this to all be within a shell script. Thank you 回答1: tl;dr: pdfjam --pagecommand '' input.pdf By