pdfpostscript

How to add page numbers to Postscript/PDF


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


Solution

  • This might be a solution:

    1. convert postscript to pdf using ps2pdf
    2. create a LaTeX file and insert the pages using the pdfpages package (\includepdf)
    3. use pagecommand={\thispagestyle{plain}} or something from the fancyhdr package in the arguments of \includepdf
    4. if postscript output is required, convert the pdflatex output back to postscript via pdf2ps