0

I am combining several pages into one file using ghostscript.

How (if possible) can I use ghostscript to add pagenumbers to the combined file?

Christian Madsen
  • 1,688
  • 4
  • 17
  • 30

1 Answers1

0

Because the Ghostscript PDF interpreter is written in PostScript you could define a PostScript EndPage procedure to do so.

See: PDF crop even-odd pages with PHP + GhostScript

and: Postscript: watermark with varying page sizes

for examples of EndPage procedures

Community
  • 1
  • 1
KenS
  • 30,202
  • 3
  • 34
  • 51