🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #699

Re: select papertray A3

#699
From: Bram Stolk
Date: Wed, 03 Mar 2004 12:05
60 lines
2960 bytes
On Tue, 02 Mar 2004 11:21:16 GMT
quite@dial.pipex.con (Aandi Inston) wrote:

> Markus Plannerer <mp@erpa.NoSpam.de> wrote:
> 
> >how to select papertray A3 which is
> >not the default ?
> >
> >The Printer is Lexmark C910.
> 
> Examine the PPD file for your printer. It will have the PostScript
> sequences you need for device control.
> 
> Tip: be sure to include the code for selecting page size A3 -and- the
> code for selecting the paper tray. One or the other alone may not
> work.
> ----------------------------------------
> Aandi Inston  quite@dial.pipex.com http://www.quite.com
> Please support usenet! Post replies and follow-ups, don't e-mail them.
>

Something like this works for me:

%!PS
%%PageBoundingBox: 0 0 842 1190
%%Orientation: Landscape
%%DocumentPaperSizes: a3
%%PaperSize: a3
%%BeginPaperSize:  a3
/setpagedevice where {
pop 1 dict dup /PageSize [  842 1190  ] put setpagedevice
} {
statusdict /a3tray known {
statusdict begin a3tray end
/a3 where { pop a3 } if
} {
/a3 where {
pop a3
} {
statusdict /setpage known {
statusdict begin
842 1190 0 setpage
end
} if
} ifelse
} ifelse
} ifelse
%%EndPaperSize



-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP  AMSTERDAM
 email: bram@nospam.sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

"For the costs of subsidized agriculture in the EU, we can have all 56 million
 European cows fly around the world. First Class." - J. Norberg
------------------------------------------------------------------------------
Technical Details
Message-ID: <20040303130545.5cb7711a@pistache.sara.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!surfnet.nl!news.surfnet.nl!not-for-mail
References: <4044533A.4000106@erpa.NoSpam.de> <40446df8.1537883008@reading.news.pipex.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f62f2,4f7383bd07422d8e
X-Google-Attributes: gidf62f2,public
X-Google-Thread: 10c61a,4f7383bd07422d8e
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2004-03-03 04:06:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!surfnet.nl!news.surfnet.nl!not-for-mail
From: Bram Stolk <bram@nospam.sara.nl>
Newsgroups: adobe.postscript.programming,comp.lang.postscript
Subject: Re: select papertray A3
Date: Wed, 3 Mar 2004 13:05:45 +0100
Organization: SARA
Lines: 60
Message-ID: <20040303130545.5cb7711a@pistache.sara.nl>
References: <4044533A.4000106@erpa.NoSpam.de>
 <40446df8.1537883008@reading.news.pipex.net>
NNTP-Posting-Host: blaat.sara.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: news.surfnet.nl 1078315546 22656 145.100.16.132 (3 Mar 2004 12:05:46 GMT)
X-Complaints-To: usenet@news.surfnet.nl
NNTP-Posting-Date: Wed, 3 Mar 2004 12:05:46 +0000 (UTC)
X-Newsreader: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i686-pc-linux-gnu)
Cache-Post-Path: blaat.sara.nl!unknown@pistache.sara.nl
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)