From: CSBVAX::CSBVAX::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 3-DEC-1988 16:55 To: MRGATE::"ARISIA::EVERHART" Subj: Using setups with the ANSI translator for DEC PostScript printers Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Wed, 30 NOV 88 17:04:05 PDT Received: from CUNYVM.CUNY.EDU by KL.SRI.COM with TCP; Wed, 30 Nov 88 16:34:06 PST Received: from SSRL750.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with BSMTP id 6306; Wed, 30 Nov 88 19:33:14 EDT Date: Wed, 30 Nov 88 14:58 PDT From: Subject: Using setups with the ANSI translator for DEC PostScript printers To: info-vax@kl.sri.com X-Original-To: info-vax@kl.sri.com > Anybody got any ideas how to get the same effect as using setup modules > on an LN03, when sending text through the ANSI translator to an LPS40? Russ - below is the text of a DCL routine that prepends the setup string desired to the file before it goes through the ANSI translator. (LOSPRINT is so called because all our PostScript printers are in a building called LOS.) I defined a global symbol $ LOS*_PRINT :== @sys$system:losprint so it's fairly transparent to the user. The big drawback is that it creates (temporarily) another copy of the file to be printed, so you might encounter a diskquota problem. $ ! Does for the PostScript printers what /FORM= does for the $ ! normal LN03s. Extracts the relevant setup from the library, $ ! attaches it to the document to print, and dispatches it off $ ! to the ANSI translator queue of whatever printer SYS$PRINT is $ ! assigned to. (Use $ DEFINE SYS$PRINT (printer) to change from LOS) $ ! Invoke with @LOSPRINT filename setupname "qualifier-string" $ ! "qualifier-string" lets you specify printer as well, eg: $ ! $ LOS MYFILE.TXT WIDE "/COPIES=3/NUMBER_UP=4/PRINTER=LOSL_LN03R" $ ! Alan Winston May 27, 1988 $ ! $ library sys$library:sysdevctl.tlb /extract='p2 /output='p2.txt $ append 'p1 'p2.txt $ print/delete/name='p1 'p2.txt 'p3 -- Alan Winston Stanford Synchrotron Radiation Laboratory WINSTON@SSRL750.BITNET