On Thu, Aug 30, 2001 at 10:36:50AM -0700, Karsten M. Self wrote:
> 
> The one way I've found to use the manual tray to date has been through
> WP8, which apparently uses printer-specific controls rather than just
> treating the device as an arbitrary postscript printer.

just in case you tend to favor a generic and straightforward
PostScript solution, give the following code snippet a try:

%!PS
<< /ManualFeed true >> setpagedevice

% example output -- real document would go here
/Helvetica findfont 20 scalefont setfont
100 600 moveto
(This tests whether ManualFeed is supported) show
showpage


When you send this to the printer, and the printer asks you to insert
a sheet, then you know that you can immediately start to forget about
all the printer-specific, proprietary PCL b***sh*t :)

The 'setpagedevice' operator is the key element here. It takes a
dictionary of various key-value pairs, which request device-specific
behaviour, if available. ManualFeed is just one of them.

If you want to learn more about what other options your printer might
be supporting, I'd warmheartedly recommend getting the PostScript
Language Reference Manual (if you haven't got it already). Actually,
there are two versions of it, the 2nd and the 3rd edition.  Both of
these reference books are also available online as PDF, and can be
downloaded for free (beer, not speech) from here:

http://partners.adobe.com/asn/developer/pdfs/tn/psrefman.pdf
  (2nd edition, 3.3MB)

http://partners.adobe.com/asn/developer/pdfs/tn/PLRM.pdf
  (3rd edition, 7.4MB)

Although it may sound strange, my personal preference is the old 2nd
ed.  Sure, it's a bit outdated, but it's got much less irrelevant
detail, which makes it easier to find what you're looking for. Also,
it's got two useful appendices on EPS and DSC, that have been removed
from the new version -- due to space constraints. OTOH, if you'd rather
want to read about every new and spiffy level 3 feature in excruciating
detail, then get yourself the 3rd ed. ;)

The relevant sections for the topic at hand are: section 4.11. (2nd
ed.), or chapter 6 (3rd ed.). Those should cover most of what you need
to know.

Cheers,

-- 
Erdmut Pfeifer
science+computing ag

-- Bugs come in through open windows. Keep Windows shut! --

Reply via email to