LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   printer command lp options -o (https://www.linuxquestions.org/questions/linux-software-2/printer-command-lp-options-o-628400/)

fhleung 03-16-2008 05:43 AM

printer command lp options -o
 
Have anyone ever use lp to print? Anyone know if it support printing multipages like 2 pages to 1

tronayne 03-16-2008 07:07 AM

Yes, been using lp for about 30 years or so. Yes, it'll support multiple pages... but, much easier, a2ps (look at at /etc/a2ps.cfg and set the Medium (paper) value, if I remember correctly it defaults to A4).

If you've got CUPS set up for your printer(s) (so all the features are available), then lp and a2ps will work just fine.

fhleung 03-16-2008 09:13 PM

I got CUPS running, but still can not find what I need. The a2ps can generate ps type file.

My questions is, how to print multi pages (like 2) into a single page.

This feature is available in a document viewer program in Debian, how about command lpr and lp ?

tronayne 03-17-2008 02:31 PM

CUPS should be able to handle output from a2ps, converting from PostScript to your printer (when you have CUPS installed you have a different version of lp).

An easy test is to
Code:

echo "Hello, world!" | a2ps
and see what you get.

prad77 03-17-2008 03:11 PM

this should help...

psnup -2 | lpr

See man psnup for more.

Fedora Development

michaelk 09-19-2014 09:04 PM

Have you tried the number-up option.

http://www.cups.org/documentation.php/options.html

jlinkels 09-20-2014 05:57 AM

For some reason this fairly long time member fhleung is necroposting in a considerable number of threads. In threads he posted before. Posts are incoherent sometimes. Given the number of posts it cannot be a newly created spam bot. But it looks a lot like a hijacked identity.

Reported for attention of the moderators.

jlinkels


All times are GMT -5. The time now is 07:23 AM.