Brian Volk wrote:

>Hi All,
> 
>When sending a document to the printer in perl, is it possible to keep the
>formatting?  When I send an .html doc to the printer, it prints out the HTML
>tags like so...  
> 
>-------- begin ---------
> 
>First Aid Procedures:</FONT></B>
><TABLE border=1>
>  <TBODY>
>  <TR vAlign=top>
>    <TD width=180>
>      <DIV align=right><FONT size=2>Eyes:</FONT></DIV></TD>
>    <TD width=504><FONT size=2>Hold eye open and rinse slowly and gently
>with
>      water for 15-20 minutes. Remove contact lenses; if present; after the
>      first 5 minutes; then continue rinsing eye. Call a poison control
>center
>      or doctor for treatment advice.</FONT></TD></TR>
>  <TR vAlign=top>
>    <TD width=180>
>      <DIV align=right><FONT size=2>Skin:</FONT></DIV></TD>
> 
>------ end -------------
> 
>At the very top of this html doc. there are some images..  I would like
>those to print as well.  Is this possible?
> 
>Thanks for your help.
> 
>Brian Volk
> 
> 
>
>  
>
You need something to render the HTML before sending it to the printer.
A web browser maybe?

Or you could convert your html into another format. I'm not sure if
there is anything like this around. I think there's a piece of software
called html2pdf or something like that. You may be able to use that ...
but then you'll have to convert from pdf to ps, and finally print the ps.

Or you could output to another format ( ps? ).

I'm currently mucking around with PDF::API2 for all output that I know
in advance has to be printed. The documentation is a little
non-existant, but it works quite well.

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to