Q: On an IBM iSeries (AS400), how can I get jPDFPrint to use a certain printer to print PDF documents?

When I query for printers with:


I get an empty array. So how do I specify a printer for jPDFPrint to use?

A: There is a good technical note about using the Java Print Services APIs on the iSeries System.

Once Java can see the print services, use the print method that takes the printer name as a parameter to print to a specific printer:

PDFPrint.print(fileName, "printer name", printSettings, pwdHandler);