I want to generate unique numbers for every page on a pdf file.
In sudo code it would look something like
next_number = 393456
job_code = "abc"
file = "some_document.pdf"
total_pages = pageCount(file)
For each page in file
next_number = next_number +1
addFooter(job_code + " "+next_number)
Most likely this would be command line (windows). Right now, what I have found is https://www.pdflabs.com/docs/pdftk-man-page/
. Reading the docs, it looks like I need to first find out how many pages are in the pdf, then generate a blank pdf with just a footer and add the unique "next_number" to every page. Then merge this document with the document I want to add the footer to.
What I am looking for are other command line tools available where I can add something unique to every page with hopefully some type of free tool where I can do this programatically. Are there better options than pdftk?