количество символов на строку распечатано lpr

Существует также lookeen, который не свободен.

2
задан 1 February 2010 в 23:10
1 ответ

Можно определить номер символов на дюйм с -o cpi и поля в точках (72 на дюйм) с -o page-left и -o page-right. Например:

       lp -d main -o cpi=10 -o lpi=8 -o page-left=72 -o page-right=72 filename

распечатал бы 75 символов на строку (принимающий шрифт фиксированной ширины и страницу 8,5 дюймов шириной).

От man lp в основанной на CUPS системе (Ubuntu 9.10):

Example:
       Print a text file with 12 characters per inch, 8 lines per inch, and  a
       1 inch left margin:
           lp -d bar -o cpi=12 -o lpi=8 -o page-left=72 filename

и

       -o cpi=N
            Sets the number of characters per inch to use when printing a text
            file. The default is 10.

       -o lpi=N
            Sets the number of lines per inch to  use  when  printing  a  text
            file. The default is 6.

       -o page-bottom=N

       -o page-left=N

       -o page-right=N

       -o page-top=N
            Sets  the page margins when printing text files. The values are in
            points - there are 72 points to the inch.
3
ответ дан 3 December 2019 в 11:15

Теги

Похожие вопросы