Wednesday, 15 September 2010

postscript - How to handle empty paper tray selection code in a PPD file? -



postscript - How to handle empty paper tray selection code in a PPD file? -

i'm writing programme adds paper tray selection commands postscript file. i'd add together them regarding user-selected ppd file, should contain paper tray selection commands. example, in specific ppd find next 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 ppd find these lines:

*inputslot tray1/tray1: "" *inputslot tray2/tray2: "" *inputslot tray3/tray3: ""

i consulted ppd spec of adobe, couldn't find info handling such empty inputslot commands. there mutual way do? suggestions welcome.

paper tray selection device-specific, need utilize whatever right device.

the sec ppd quote nuts, suspect means device in question doesn't have multiple trays , copied ppd device did, , in usual 'monkey see monkey do' approach, 'fixed' deleting postscript between speech marks, nil gets emitted setpagedevice.

to blunt sec illustration incorrect.

postscript ppd

No comments:

Post a Comment