[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev looking for alternative method for printing a web page
From: |
Larry W. Virden |
Subject: |
lynx-dev looking for alternative method for printing a web page |
Date: |
Sat, 29 Aug 1998 08:26:51 -0400 |
This msg is a tip as well as a request.
The tip is this. For those of you on Unix, with the addition of a few
programs, you can get very nice output from lynx. To do this, you need
1. perl <URL:http://www.perl.com/>
2. ImageMagick <URL:http://www.wizards.dupont.com/cristy/ImageMagick.html>
3. html2ps.pl <URL:http://www.tdb.uu.se/~jan/html2ps.html>
I _think_ that's all you need <grin>
Anyways, with the above, I then set this up in my lynx.cfg
DOWNLOADER:html default printer:file="%s";prthtml %s "$file":FALSE
$ cat $HOME/bin/prthtml
#!/bin/ksh
html2ps -n -x 1 "$2" | lpr -o duplex -J"$1"
Now, when I want to print a page, I tell lynx to download it using the 'd'
subcommand, then when I am asked whether I want to save it, I select the
"html default printer" option. html2ps is invoked, and read the HTML,
retrieves the images, and prints things. If you've a color postscript
printer, you can set things up to get color output!
Now, what I would _really_ like to do is to type a command to lynx to
tell it to take the html for the currently displayed page and feed it to
prthtml .
Anyone know what could be done to do this? Sometimes it is less convenient
to back out of the current page .
Thanks and hope this was useful.
--
Larry W. Virden INET: address@hidden
<URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
Unless explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.
- lynx-dev looking for alternative method for printing a web page,
Larry W. Virden <=