From: "Ernest" <Ernset[dot]Labonte@hp.com>
Subject: Re: Print forms, layout
Date: Mon, 25 Aug 2003 17:25:24 GMT [thread overview]
Message-ID: <8Er2b.3227$4N2.2925@news.cpqcorp.net> (raw)
In-Reply-To: 3273445.1061544417@dbforums.com
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" <member36604@dbforums.com> 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
prev parent reply other threads:[~2003-08-25 17:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-22 9:26 Print forms, layout ejanssen
2003-08-23 19:37 ` Nico Kadel-Garcia
2003-08-25 17:25 ` Ernest [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox