Saving Trees.....


Very quick one. a2ps and friends are bundled in /usr/sfw/bin in Solaris 10, and it is an incredibly handy command for printing documentation. I was espousing its virtues to one of my non blogging heathen (to borrow a phrase from Mr. Clingan) colleagues who tends to print out a lot of things yesterday.

Anyway the easiest way to use it, say for printing out a pdf document with say four pages per page is to just set your PRINTER environment variable, and run, so we get something like

[fintanr@tiresias bin] $ export PRINTER=myprinter
[fintanr@tiresias bin] $ a2ps -4 /tmp/819-2660.pdf
You can of course setup your printers.conf file or your .printers file in your home directory to set your default printer, but I'll leave that as an exercise for the reader.
Comments:

Excellent. Before we included a2ps, there was no way to lp pdf files direct to the printer from the command line. There was always the requirement to open the file in Acroread and print from there. This annoyed customers who wanted to batch print pdf files.

Posted by ML Starkey on October 04, 2005 at 12:14 PM IST #

jhkbik

Posted by guest on November 09, 2006 at 02:36 PM GMT #

cddf

Posted by y on March 14, 2009 at 05:38 AM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

fintanr

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today