For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > September 2004 > Printing html document









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Printing html document
Victor

2004-09-24, 8:55 am

I need to print a html page using a button(but not the mozilla or
explorer button).
So I need I button in a web page that will print that page to a
printer that is not attached to the local computer, but to the web
server where the page is hosted.

The problem is that when I send a html page it prints all the tags:
<table>, ...

I belive I need function that can give me the right string to send
to the printer.


Thank you.

David Dorward

2004-09-24, 8:55 am

On Fri, Sep 24, 2004 at 12:12:33PM +0300, victor wrote:
> So I need I button in a web page that will print that page to a
> printer that is not attached to the local computer, but to the web
> server where the page is hosted.
>
> The problem is that when I send a html page it prints all the tags:
> <table>, ...


So you need some sort of filter to convert an HTML document to a
format that your printer can understand. Are you trying to get plain
text output? HTML::Striper might be your friend. Want it formatted?
HTML::Latext might do as a first stage (then you'll need to convert
the LaTeX to something your printer can understand (maybe
postscript)).

--
David Dorward http://dorward.me.uk

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com