You are here: Re: is there a way to take an html string and render it as a web browser would, from the command line? « PHP Programming Language « IT news, forums, messages
Re: is there a way to take an html string and render it as a web browser would, from the command line?

Posted by Gordon Burditt on 10/26/05 00:42

>I'm sorry that I was not more clear before. I want to write a shell
>script in PHP or Perl that will run on an HP Unix system. The script
>should build up a string of HTML, turn it into a rendered web page,
>send that to the printer, then return control the command line. When I
>say "turn the string into a web page" I mean that HTML image tags
>should print out as images, not HTML image tags.

There's a FreeBSD port/package (and I'm sure it's not unique to
FreeBSD) called "html2ps". I think it does what you want it to -
turn HTML into rendered Postscript. No guarantees about what it's
written in. If you don't have a Postscript printer, also install
the 'ghostscript' package, which emulates one. You might need a
wrapper script to actually send the output to a printer.

Gordon L. Burditt

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация