Hi all,
is it possbile to print out a HTML file via shell command?
Looking forward to your reply.
Best regards, Leon
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
On Tue, 2005-11-01 at 05:49 -0800, Leon Pu wrote:
is it possbile to print out a HTML file via shell command?
It should be. Try a text-mode web browser like Lynx.
--- Tim ignored_mailbox@yahoo.com.au wrote:
On Tue, 2005-11-01 at 05:49 -0800, Leon Pu wrote:
is it possbile to print out a HTML file via shell command?
It should be. Try a text-mode web browser like Lynx.
My HTML includes image, is there any other way?
Thanks for your reploy.
Best regards, Leon
__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
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?
On Tue, 2005-11-01 at 10:47 -0500, Derek Martin 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?
Try this options. curl gets all html code. lynx -dump gets visible text layout.
[root@rodolfoap bin]# curl URL
[root@rodolfoap bin]# lynx -dump URL
-- Rodolfo Alcazar - rodolfo.alcazar@padep.org.bo Netzmanager Padep, GTZ 591-70656800, -22417628, LA PAZ, BOLIVIA http://otbits.blogspot.com -- After all is said and done, a hell of a lot more is said than done.
--- Derek Martin code@pizzashack.org 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.
Best regards, Leon
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
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
On 11/1/05, Berna Massingill bmassing@cs.trinity.edu wrote:
On Tue, Nov 01, 2005 at 09:02:04AM -0800, Leon Pu wrote:
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.
Last time I tried to use that, it was a little clunky. It may have improved in the last couple of years though.
Given that Firefox has a pretty decent 'print to ps' option, it's disappointing that you can't access it from the command line. It would be great to be able to script stuff like
$ firefox --as_ps http://example.com/ > example.ps
Dave...
--- Dave Cross davorg@gmail.com wrote:
On 11/1/05, Berna Massingill bmassing@cs.trinity.edu wrote:
On Tue, Nov 01, 2005 at 09:02:04AM -0800, Leon Pu wrote:
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.
Last time I tried to use that, it was a little clunky. It may have improved in the last couple of years though.
I also found this tool, I will try it later.
Given that Firefox has a pretty decent 'print to ps' option, it's disappointing that you can't access it from the command line. It would be great to be able to script stuff like
$ firefox --as_ps http://example.com/ > example.ps
I was shocked that web browsers cannot print html file via command, even these browsers have their own shell command.
Lynx can dump the web page to plain text, but the character size will also lost together with images.
Leon
__________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
On Wed, Nov 02, 2005 at 09:15:18AM +0000, Dave Cross wrote:
On 11/1/05, Berna Massingill bmassing@cs.trinity.edu wrote:
On Tue, Nov 01, 2005 at 09:02:04AM -0800, Leon Pu wrote:
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.
Last time I tried to use that, it was a little clunky. It may have improved in the last couple of years though.
The most recent version I found with a quick search is very similar to the two-year-old version I've used. "Clunky" is apt, but I've found the program useful for doing with the OP describes, well worth what I paid for it.
Given that Firefox has a pretty decent 'print to ps' option, it's disappointing that you can't access it from the command line. It would be great to be able to script stuff like
$ firefox --as_ps http://example.com/ > example.ps
That would indeed be nice.
-- blm