Checking Print Job size in Java Printing API

T

thtsang_yh

I am using Java Printing API and want to send to different printers
according to print job size. The JobKOctets attribute seems to be doing
this. However, my print service does not support it. Therefore, I am
trying to check the print job size myself.

StreamPrintService seems to be a good candidate. But it seems to output
to Postscript only, which is not an option because my printer does not
support it. Any one know whether there are any other output format? It
would be great if there is a format that has a matching DocFlavor which
IS USABLE.

The Destination attribute also looks good. But the doc say that it is
most likely not supported. Therefore, it also seems unusable. BTW, even
if I can save the print data to a file, will I be able to read it back
to really send the data to the printer? If so, how? (Use
DocFlavor.SERVICE_FORMATTED?)

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top