Creating a print job from a print service

suggest change

A print job is a request to print something on a specific print service. It consists of:

After choosing a print service, request a print job from it:

DocPrintJob printJob = printService.createPrintJob();

The DocPrintJob interface provides the print method:

printJob.print(doc, pras);

The doc argument is a Doc: the data that will be printed.

The pras argument is a PrintRequestAttributeSet: a set of PrintRequestAttribute values. Examples include:

The print method may throw a PrintException.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents