How to tell the number of pages in a postscript file

If the postscript file is correctly formatted, you can grep the instances of %%Page:

grep -c %%Page: document.ps

See here for more info.

Leave a Reply

Your email address will not be published. Required fields are marked *