Batch pdf page numbering.

I have a future requirement to consecutively page number a pdf document assembled from many individual pdf files. Is there something that runs on FreeBSD that will handle this? I need to be able to specify the location of the page number on the page. In other words 'centre bottom, 1/2" above end of page' for example.
 
Do want to do programming or command-line tool or GUI?

Yes there’s stuff that can do this but depends on what exactly you have in mind …
I have to assemble a single pdf 'book' of documents from multiple pdf files. That I can manage and have done so in the past. However, once the single pdf document is assembled I need to consecutively number each page from start to finish. This is a so-called Bates numbering exercise. I do not wish to use an online service for this due to the nature of the documents themselves.
 
I didn’t mention online services but that’s another option.

Still don’t know what sort of approach you want to take - if programming then most languages have appropriate PDF libraries (I’ve used fpdf with FPDI under PHP), if command line then maybe Ghostscript or ImageMagick or qpdf or pdftk, if GUI I don‘t know.

There are many others but really depends on whether programming/command line/GUI.
 
A gs script is a workable solution. I keep forgetting that pdf is essentially postscript. However, I had in mind a software solution that did not involve scripting. Idealy I feed in the compiled pdf assemblage and received out a page numbered result. It does not matter whether the user interface is the command line or graphical.
 
Back
Top