PCL printer issue with Aspose Words generated PCL

When printing the pcl generated from Aspose Words in Lexmark MS 911 DE printer, the printer is not recognizing the paper type and It is showing the message “Change Tray 1 to Heavy Paper Universal.” we are using the paper size 11 * 17 in the pcl

@Jonam312 The problem might occur because paper tray value written into the PCL file is not correct for the printer. In MS Word document you can specify paper tray using FirstPageTray and OtherPagesTray properties. The values are implementation (printer) specific.

@alexey.noskov Is there any way we can get the tray value (which need to be passed in the first page tray method ) with the printer name and model (We don’t have the printers configured in our system.)? Our application only generates the PCL file and sending it to the vendor for printing. Also we are using the aspose words Java for pcl generation

@Jonam312 Unfortunately, there is no way to get raw kind (paper tray number) without printer driver. When the printer is installed and used as default printer you can get raw kind of paper source using .NET and the following commands in PowerShell:

> Add-Type -AssemblyName System.Drawing
> [System.Drawing.Printing.PrinterSettings]::new().PaperSources

When inspecting the pcl file which is having the issues with printer, I am able to see the following errors mainly “Missing Attribute Source Type” in RedTitan escapeE. Will it be related to the printer issue?

@Jonam312 Could you please attach your input document and output PCL we will check it on our side and provide you more information.