Autocut option for Print API ??

Q

QGoogle

Is there a way to programmatically set the AUTOCUT option for a
PrinterJob in the java.awt.print API ?

I need to process a series of Landscape and Portrait PrinterJobs and
need to cut them alternately (need to autocut every alternate job)
Hence I was wondering if there is any parameter (such as orientation
etc) that I can change dynamically in my code as I process every Job.

Please let me know if anyone here has any ideas.

Thanks in advance!
 
R

Roedy Green

Is there a way to programmatically set the AUTOCUT option for a
PrinterJob in the java.awt.print API ?

I need to process a series of Landscape and Portrait PrinterJobs and
need to cut them alternately (need to autocut every alternate job)
Hence I was wondering if there is any parameter (such as orientation
etc) that I can change dynamically in my code as I process every Job.

Please let me know if anyone here has any ideas.

Thanks in advance!

Check out http://mindprod.com/jgloss/printing.html

I show you how to use java.awt.print.Printerjob. I also show you how
to use the javax.print. The commonality between them are PrintService
and DocPrintJob. What I show may be sufficient for you to figure it
out. I have not yet figured out just how you add attributes to a
PrinterJob though I have for a DocPrintJob. It is probably similar.
If you figure it out, please post some sample code.
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top