SUMMARY Changing font/size when printing with 'lp' ?

From: Peter L. Buschman (Peter.Buschman@storagenetworks.com)
Date: Thu Jun 29 2000 - 13:05:03 CDT


Well, as always, there's more than one way to do it:

The answers to my question came from the following people:

Ian Camm <ian.camm@sde.eu.sony.com> who suggested using 'enscript'

Waghode Sanjay <SWaghode@caxton.com> who supplied the following command line:

>Hi ,
>Try this , you can reduce or increase these parameter for font size , line
>spacing , no of lines .
>lp -dPrinter -olandscape -ofs -ofp12.6 -ovsi5.7 -otl66 FileToPrint
>

Matthew Mauzy <matthew_mauzy@unc.edu> who suggested the following excellent
solution:

Try '/usr/lib/lp/postscript/postprint -x0.5 -s10' The -x sets the left
margin and -s is the font size.

"John Saalwaechter" <saalwaechter_jw@hotmail.com> who improved on the
above with:

>You may have already received this input, but use the postprint command.
>Here is a shell script I use for such purposes:
>
>
>#!/bin/sh
>#
># file: custlp
>#
># description: my custom lp
>#
>
>
>PR=/usr/bin/pr
>#LP=/usr/bin/lp
>LP="/usr/ucb/lpr -l"
>POSTPRINT=/usr/lib/lp/postscript/postprint
>FOLD=/usr/bin/fold
>rows=82
>offset=10
>
>
>if [ "$1" ]
>then
> for f in "$@"
> do
> echo "printing $f ..."
> $FOLD -w 80 $f|$PR -e4 -l$rows -o$offset -h "$f"|$POSTPRINT -s8
-l0|$LP
> sleep 3
> done
>else
> $FOLD -w 80| $PR -e4 -l$rows -o$offset -h stdin|$POSTPRINT -s8 -l0|$LP
>fi
>
>
>__END__
>
>
>(I have to use "lpr -l" to print postscript because all my print
>servers are NT.)
>
>
>John Saalwaechter

And last, but not least, myself. :) Through some further digging, the
solution I ended
up using was the excellent utility 'a2ps'

Kindest regards to everyone,

Peter L. Buschman

--
Peter L. Buschman
Sr. Technical Specialist
StorageNetworks
Phone: (773)444-3221
Cell:  (773)368-0140

S U BEFORE POSTING please READ the FAQ located at N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq . and the list POLICY statement located at M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy A To submit questions/summaries to this list send your email message to: N sun-managers@ececs.uc.edu A To unsubscribe from this list please send an email message to: G majordomo@sunmanagers.ececs.uc.edu E and in the BODY type: R unsubscribe sun-managers S Or . unsubscribe sun-managers original@subscription.address L To view an archive of this list please visit: I http://www.latech.edu/sunman.html S T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:11 CDT