How to add page numbers to Postscript/PDF

pdf, postscript

Solution

This might be a solution:

- convert postscript to pdf using `ps2pdf`

- create a LaTeX file and insert the pages using the pdfpages package (`\includepdf`)

- use `pagecommand={\thispagestyle{plain}}` or something from the fancyhdr package in the arguments of `\includepdf`

- if postscript output is required, convert the pdflatex output back to postscript via `pdf2ps`

Problem

If you've got a large document (500 pages+) in Postscript and want to add page numbers, does anyone know how to do this?

Original source

Related problems