T.R | Title | User | Personal Name | Date | Lines |
---|
924.1 | | KERNEL::COFFEYJ | La Feline Flooz - a unix cat | Mon Mar 24 1997 14:52 | 12 |
| 132 is the maximum for lpd to manage if you specify a width.
In some cases by not defining a width and using xf people
have got more printing simply because that just does a cat,
and of course Postscript controls all that itself and
doesn't really have a character size as standard so can't
have it's page width measured in characters.
Dependant on what your customer is trying to do it sounds
like xf might do what you need.
Jo
|
924.2 | | SMURF::LABONTE | | Mon Mar 24 1997 17:32 | 24 |
| Page width limits are imposed by printcap pw, lpr -w, and the print filter.
In this case lpr -w and printcap pw yield the same results.
The print daemon uses the printcap pw to specify the page width. The
internal size of pw is a signed int so this should not impose any width
issues. The print daemon passes this value to the print filter. The filter
can choose to use the pw value or ignore it. The /usr/lbin/xf filter script
ignores the pw value. It is also common for filters processing postscript
files to ignore the pw value. However, filters converting text files to
postscript will probably use the pw value. Side note some filters use the
page width to activate landscape printing.
Many of the filters use an internal buffer to store a line of text for
processing. These filters will not allow a pw setting greater than the size
of the buffer. This is the reason for the 132 characters limit.
FYI, the pcfof filter (yet to be released) does not utilize an internal
buffer so the filter does not have a width limit. However it will not
auto-adjust the font size based on the page width.
Using the current release of Digital UNIX you can create a special filter
or preformat the file and use `lpr -x' which calls /usr/lbin/xf. If a
filter is created it will need to include printer commands to specify the
font size and probably the vertical pitch.
|
924.3 | | KERNEL::COFFEYJ | La Feline Flooz - a unix cat | Tue Mar 25 1997 12:47 | 17 |
| Fair enough, it makes more sense the way you describe it,
maybe digital unix is different, but the bit that always
got me were the bits like:
from lp.local.h #define DEFWIDTH 132
(and I double checked that happens in both dUnix and Ultrix)
I don't know if that's the main bit but I remember reading
the sources for a problem once and thinking why does it
hard code it it there and imply in the man pages you have
full control and choice, why not say in the man pages you
can't set it beyond that?
Maybe it's just the default now instead of the maximum...
|
924.4 | | SMURF::LABONTE | | Tue Mar 25 1997 14:17 | 5 |
| lp.local.h #define DEFWIDTH 132
is only used to define the default printcap pw value when pw is not specified
in the /etc/printcap file. DEFWIDTH is not an upper limit. You can set a
value greater than 132 however the filter may choose not to use the value.
|