How to handle empty paper tray select code in PPD file?

I am writing a program that adds paper tray selection commands to a PostScript file. now I would like to add them in relation to the selected PPD file, which should contain the commands for selecting the paper tray. for example in a specific PPD I find the following lines:

*InputSlot Tray1/Tray 1:  "<< /MediaPosition 0 /TraySwitch false >> setpagedevice"
*InputSlot Tray2/Tray 2:  "<< /MediaPosition 1 /TraySwitch false >> setpagedevice"
*InputSlot Tray3/Tray 3:  "<< /MediaPosition 2 /TraySwitch false >> setpagedevice"

      

in another PPD I find these lines:

*InputSlot tray1/tray1: ""
*InputSlot tray2/tray2: ""
*InputSlot tray3/tray3: ""

      

I have already consulted the PPD specification for Adobe, but I could not find any information on handling such empty InputSlot commands. is there a general way what to do? any suggestions are appreciated.

+3


source to share


1 answer


The choice of paper tray is device dependent, so you need to use whatever works for the device.

The second PPD you cite is nuts, I suspect this simply means there are no multiple trays on the device in question and someone copied the PPD from another device that was done and then normally "monkey sees monkey "," fixed "it by removing PostScript between the speech marks so that nothing would be intimidated by setpagedevice.



To be blunt, the second example is simply wrong.

+2


source







All Articles