Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now I only can get actual page count from querying print job attribute after print job finishes. I found that page count increases on "localhost:631/jobs" during printing.

What I want is get page count before the first page is printed, because I want tell printer this data before sending any print data.

share|improve this question

This would only be possible with a postscript/PDF document, where your document's pagination information is passed to the device. Otherwise, you won't know this information ahead of time.

I encounter this on production and unattended printing systems when I need collation or stapling features. Those functions don't work without having an accurate page count.

Can you explain what you're trying to accomplish, the printers involved, the application and OS?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.