Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I know total number of pages in a postscript file?

file pages Postscript total
0
10 Posted

How can I know total number of pages in a postscript file?

0
10

The following may sound like a nit, but it’s not. A PostScript file does not “contain” pages. The output on a PostScript printer, naturally, is divided into physical pieces of paper which we call pages. The reason this is not a nit is that what notifies PostScript that a page is complete and can be sent to the printer is the PostScript showpage operator. It is possible for a PostScript file to contain one occurrence of the showpage operator for each page that is to be printed. In such a file, all you need to do is count the number of occurrences of the showpage operator, and you’re set. But it is also possible for a file which produces multiple pages to contain only one occurrence of showpage. This can happen if the showpage occurs within a loop (since PostScript is a real programming language), or within a function call. I imagine that a person will not likely want to actually dive in and read a PostScript file to figure this out. All he probably wants is a quick and dirty way to coun

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123