I am not able to set the “Tray 1” as a default Tray. when I am using the setFirstPageTray(int value) method during doc to pcl conversion, I have to get the int value dynamically depends on the machine where the code was deployed. But we are passing the PCL file to third party where we do not know the available printers and the integer parameter value definitely varies in their machine. Is there any other option to set Tray like setTray(“Tray 1”) or do we have any constant int value for Tray 1?
@Jonam312 You are right, the tray integer value is implementation (printer) specific. Unfortunately, there is no other way to specify tray using Aspose.Words. It is required to get the tray integer value from the printer and then specify it.