I'm trying to add page numbers to all pdfs in a folder through bat script.
I am unable to install any software, and hence I can only use what's on my windows machine.
I do have ghostscript, and some pdf readers (also Nuance which has the gr8 Pdf creator assistance which can do this in a jiffy - however, not from batch).
I've found this answer here: How can I add a footer to the bottom of each page of a postscript or pdf file in linux? But to no success!
And I've saved the "code" to a .ps file. after that i run:
for /f %%a in ('dir /b *.pdf') do (
gswin64c -q -dQUIET -dBATCH-dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=c:\folder\%%a -f AddPn2Pdf.ps )