From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,35673edbe42b120a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-25 10:25:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: "Ernest" Newsgroups: comp.unix.tru64 References: <3273445.1061544417@dbforums.com> Subject: Re: Print forms, layout X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <8Er2b.3227$4N2.2925@news.cpqcorp.net> Date: Mon, 25 Aug 2003 17:25:24 GMT NNTP-Posting-Host: 16.141.136.141 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1061832324 16.141.136.141 (Mon, 25 Aug 2003 10:25:24 PDT) NNTP-Posting-Date: Mon, 25 Aug 2003 10:25:24 PDT Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:10738 The ppdof text to PostScript print filter has the capability to load lpr options from a file. The file must be located in /usr/lbin/ppd and is referenced in the printcap entry. Keep in mind that most of the filter options only apply to text files. File Format: ----------- % File comment. Do not use between *Setup and *end. % *Setup option_name/Comment listed on -Oprint page: -lpr option -lpr option -etc *end ------------- Begin Example ------------- % Print a text file with 132 columns in portrait % orientation. The print filter will auto-scale the % font to make the text fit the page width. *Setup PortraitWide/Portrait 132 columns: -Otm=0.5 -Obm=0.5 -Olm=0.25 -Orm=0.25 -w132 *end % Print the text file in landscape with a % page margin of .25 inchs. % *Setup Landscape/Landscape with .25 inch margin: -OLandscape -Opm=.25 *end % Select tray with 3 hole paper and set the margins % wide enough to not print over the holes for either % single or two sided printing. % *Setup HolePaper/Select 3 hole paper: -Itray3 -Olm=0.5 -Orm=0.5 *end ----------- End Example ----------- Create the example file /usr/lbin/ppd/example.pfo and set the protection to world read. Modify the printcap entry input filter specification to reference the file by adding +Cexample.pfo. For example: :if=/usr/lbin/ppdof +OPageSize=Letter +Cexample.pfo hplj8000.rpd:\ Enter the following command to print the options page. lpr -Pqueue -Oprint /etc/motd If everything was configured correctly the printed options page will list 'Setup=' options 'HolePaper', 'Landscape', and 'PortraitWide.' To print a file using PortraitWide enter: lpr -Pqueue -Osetup=PortraitWide file.txt The option PortraitWide is case insensitive. Ernest ------ "ejanssen" wrote in message news:3273445.1061544417@dbforums.com... > > In OpenVMS you can use print forms to define the layout which should be > used when the data is printed. Layout like top, bottom, left, right > margen, character size .... > > In Tru64 we want to use this also because the application which ran on > OpenVMS use it. How can I define such layouts on UNIX print queues. > > These UNIX print queues will use the OpenVMS systems as printservers. > > > -- > Posted via http://dbforums.com