I am trying to insert a media type into a postscript file to tell the printer which tray to pull the paper from. The printers tray#1 paper type has been set to "Letterhead" and tray #2 has been set to ‘Plain Paper”.
I inserted the "<</MediaType(letterhead)>> setpagedevice" command into the postscript file before the %%page command as very similar to question in thread280-1325467. I am not having any luck in getting this to work.
The ultimate result is that I want to insert a tray / media type command just ahead of each %%Page: <label> <number> command throughout the entire eps spool file so that I can print all the page one's from tray one and page two's from tray two.
Code Sample:
userdict begin /ehsave save def end
<</MediaType(letterhead)>> setpagedevice
%%Page: 1 1
%%PageBoundingBox: 12 12 600 780
%%EndPageComments
%%BeginPageSetup
%-OEMPluginInsertBegin
featurebegin{
%%BeginNonPPDFeature: OEMPluginPaperOrientation 0
0/Custom/ProcSet findresource/setpaperorientation get exec
%%EndNonPPDFeature
}featurecleanup
%-OEMPluginInsertEnd
/DeviceRGB dup setcolorspace /colspABC exch def
mysetup concat colspRefresh
%%EndPageSetup
Any suggestion?
I inserted the "<</MediaType(letterhead)>> setpagedevice" command into the postscript file before the %%page command as very similar to question in thread280-1325467. I am not having any luck in getting this to work.
The ultimate result is that I want to insert a tray / media type command just ahead of each %%Page: <label> <number> command throughout the entire eps spool file so that I can print all the page one's from tray one and page two's from tray two.
Code Sample:
userdict begin /ehsave save def end
<</MediaType(letterhead)>> setpagedevice
%%Page: 1 1
%%PageBoundingBox: 12 12 600 780
%%EndPageComments
%%BeginPageSetup
%-OEMPluginInsertBegin
featurebegin{
%%BeginNonPPDFeature: OEMPluginPaperOrientation 0
0/Custom/ProcSet findresource/setpaperorientation get exec
%%EndNonPPDFeature
}featurecleanup
%-OEMPluginInsertEnd
/DeviceRGB dup setcolorspace /colspABC exch def
mysetup concat colspRefresh
%%EndPageSetup
Any suggestion?