Re: Sending files to printer question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Aug 12, 2008 at 08:58:43AM +1000, richard terry wrote:
> 
> I wondered if there was a command line utility to do the conversion.

You could combine some nice tools
Look at the tools:
html2text and htmldoc
First is an "simple" text parser without formatting.
htmldoc is a complex tool which renders html files to ps, pdf (or html).
With htmldoc you could render complex webpages with many options.

The solution for your problem could a piping party..

wget downloads the html code and pipded it to htmldoc. htmldoc produces
ps or pdf which you pipe to your printer.

One quick example could be (one line):
,----
| wget -O - pages.html http://aur.archlinux.org/index.php | htmldoc --webpage -t ps - | lp
`----
The many single - in the commands are important, this is stdin and stdout

For more options and useful settings look at man htmldoc.

> Richard

Gerhard

-- 
Never use a running system...


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux