Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The script i want to create is one that is able to print
the html file, not the source code but the output i will
see on my browser.
Thanks.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Re: Using script to print out a html file
by ColtsFoot (Chaplain) on Jul 31, 2000 at 12:40 UTC | ||||||||||||||||||||||||||||||||||||||||
in your HTML then you could try parsing your document using HTML::Parser and then use HTML::FormattedText and the format method to get your output. Hope this is of help | [reply] [d/l] | |||||||||||||||||||||||||||||||||||||||
Re: Using script to print out a html file
by Corion (Patriarch) on Jul 31, 2000 at 12:29 UTC | ||||||||||||||||||||||||||||||||||||||||
It is in general a quite hard task to render HTML like "your" browser, as many browsers have quite different opinions on how to "correctly" render HTML. There are modules that do this for Perl, like HTML::Format, that can produce Postscript or ASCII text from HTML source, but if you want something in the quality of IE 5, supporting frames etc., you have to use IE 5 to print it. In general, Perl is the wrong hammer for this nail. | [reply] | |||||||||||||||||||||||||||||||||||||||
Re: Using script to print out a html file
by Anonymous Monk on Nov 29, 2002 at 12:11 UTC | ||||||||||||||||||||||||||||||||||||||||
Originally posted as a Categorized Answer. | [reply] | |||||||||||||||||||||||||||||||||||||||
Re: Using script to print out a html file
by Anonymous Monk on Dec 06, 2002 at 16:43 UTC | ||||||||||||||||||||||||||||||||||||||||
Originally posted as a Categorized Answer. | [reply] |