If you\'ve got a large document (500 pages+) in Postscript and want to add page numbers, does anyone know how to do this?
You can use the free and open source pdftools to add page numbers to a PDF file with a single command line.
The command line you could use is:
pdftools --input-file input.pdf --output output.pdf --text $page/$pages 0.9 0.9 --fitpaper
Regarding the --text option:
$page stands for the current page number, while $pages stands for the total number of pages in the PDF file. Thus the option so formulated would add something like "1/10" for the first page of a 10-page PDF document, and so on for the following pagesThe --fitpaper option is used to maintain the dimension of the input pdf file in the output pdf file.
Disclaimer: I'm the author of pdftools