1824993 Members
2199 Online
109678 Solutions
New Discussion юеВ

Re: Printing / compress

 
Nobody's Hero
Valued Contributor

Printing / compress

Hello all,
can someone test this for me to see if you get the same output as I do.

I want to print a file. the flags should tell it to print landscape and it should be compressed. That is, the output should be small and in the upper left hand corner of the page. Here is the command:

lp -o fp20 -o landscape -o vsi4 -o tl66 'filename'

Can someone tell me how I can get my printer to print compressed?
UNIX IS GOOD
6 REPLIES 6
Rick Garland
Honored Contributor

Re: Printing / compress

I am getting the landscape option but nothing else.

Check the print driver you are using. These options may not be available. From the www.cups.org site you can get the Driver Development Kit and roll your own.

Other option, use enscript. Has many options available with the print drivers it loads.

Other option is mpage. Will print multiple pages on a single sheet.

Rick Garland
Honored Contributor

Re: Printing / compress

Haven't had to print using these options before on a Linux system so I am interested...

I did the following command and got a landscape, compressed output.
enscript -PIS3 -G -L60 -r -h /etc/group

The -r is to rotate to landscape
The -h compresses

Nobody's Hero
Valued Contributor

Re: Printing / compress

Thanks Rick,

The -h wont compress my output. Any idea why? It takes the command but it does not print super compressed.
UNIX IS GOOD
Rick Garland
Honored Contributor

Re: Printing / compress

My 1st guess would be driver/printer.
What are the capabilities of the driver?
Tibor Bajnok
Occasional Advisor

Re: Printing / compress

I work with this escape sequence solution:

This C code send the escape character:

#include
main()
{
printf("\033");
}

You have to comppile it (named for example: lo) and then:

(./lo ; echo '&l1S' )

This sequence instruct our HP printer to print double sided.
See your printer documentation, you will find the appropriate sequence for compressed mode and the code for switch it back to normal.


Stuart Browne
Honored Contributor

Re: Printing / compress

Umm, tibor, you do know that 'echo -e "\033&l1S"' will do exactally the same thing, don't you?

You can easily echo octal codes.
One long-haired git at your service...