🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #1362

Re: Putting intelligence into .ppd file

#1362
From: Marc Antoni Malagarriga i Picas
Date: Fri, 25 Oct 2002 14:09
16 lines
1362 bytes
Hi Martin, 

You have the possibility to ask the *printername* and make a decision, like: 

statusdict begin 
80 string printername (The OCE Printer Name) eq 
{end 1 statusdict /setpapertray get exec}{end}ifelse 

In this case only the OCE printer executes the "1 statusdict /setpapertray get exec" paper tray call. But you need to known the internal OCE *printername*, of course ! 

They are other device dependent operators, like *product* with similar behaviour. 

Hope this helps, 

MaRC anToni (][ www.femfum.com 
PostScript&PDF Tools Developers
Technical Details
Message-ID: <1de6519c.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6519c.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,ac1f37c059a41a02
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2002-10-25 07:40:01 PST
From: "Marc Antoni Malagarriga i Picas" <marcantoni@femfum.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.postscript.programming
Subject: Re: Putting intelligence into .ppd file
Message-ID: <1de6519c.1@WebX.la2eafNXanI>
Date: Fri, 25 Oct 2002 07:09:30 -0700
References: <1de6519c.-1@WebX.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit