Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Tray Commands into Postscript File

Status
Not open for further replies.

gnue

Programmer
Sep 19, 2008
1
CA
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top