Print HTML file via shell command
Berna Massingill
bmassing at cs.trinity.edu
Tue Nov 1 17:20:45 UTC 2005
On Tue, Nov 01, 2005 at 09:02:04AM -0800, Leon Pu wrote:
>> > On Tue, Nov 01, 2005 at 05:49:41AM -0800, Leon Pu wrote:
>> > > Hi all,
>> > >
>> > > is it possbile to print out a HTML file via shell command?
>> >
>> > Yes. But, it's not clear what you're trying to accomplish... Your
>> > question is a little vague. Where do you want the file to print? Do
>> > you want the contents of the file printed, or do you want the
>> > formatted web page printed?
>>
>> I want to print out the HTML file in its web page format, not the HTML
>> source.
>>
>> It's better to print out the HTML file in web format via one shell
>> command likes [htmllpr foo.html].
>>
>> If there is no possibility to print out HTML via shell command
>> directly, is it possbile to convert the HTML file to PDF or PostScript
>> by shell then I can print out?
>>
>> Thanks for your reply.
There's a program "html2ps" that I think will do what you want. It's a
Perl script, and a Google search for "html2ps" should find it.
-- blm
More information about the fedora-list
mailing list