Printer trays configuration for print jobs

// Load the Aspose document for printing
com.aspose.words.Document asposeDoc = new com.aspose.words.Document(inputStream);
// Print the document to the specified Windows Printer
asposeDoc.print(printer);

We are using above snippet to print our word documents. We have a special requirement to print the first page of the print job from tray 1 (contains letterheads) and all trailing pages on plain paper loaded on tray 2.

Would like to know if this kind of configuration is doable from Aspose Words Java API? If yes, would appreciate if you could supply a sample.

Thanks.

@sachingusain Sure you can use PageSetup.FirstPageTray and PageSetup.OtherPagesTray properties to specify the paper tray (bin) to use for the first and other pages of a section. The value is implementation (printer) specific.