Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.