[cups.general] how to print with lp that no split words?
Johannes Meixner
jsmeix at suse.de
Fri May 13 02:00:31 PDT 2011
Hello,
On May 12 23:13 adam wrote (excerpt):
> [zt at adam ~]$ lp -o prettyprint -o media=a4 -o cpi=12 -o lpi=8 \
> -o page-left=60 -o page-right=60 /home/zt/Desktop/New-Concept-English
>
> it output like this:
>
> AAAAAAAAAAAAA EXAM
> PLE AAAAAAAAAAA GI
> VE AAAAAAAAAAAAA T
> O AAAAAAAAAAAAAA W
> ORDs ...........
>
> i want it to be:
>
> AAAAAAAAAAAAAA
> EXAMPLE AAAAAAAAAAA
> GIVE AAAAAAAAAAAAAA
> TO AAAAAAAAAAA WORD
You may use a "fold -s -w width" command in between like in
$ fold -s -w width /home/zt/Desktop/New-Concept-English \
| lp -t '/home/zt/Desktop/New-Concept-English' \
-o prettyprint -o media=a4 -o cpi=12 -o lpi=8 \
-o page-left=60 -o page-right=60
You would need to calculate the right value for width
based on your settings for the lp command, see
http://www.cups.org/str.php?L1227
Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany
HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer
More information about the cups
mailing list