Page 1 of 1

Converting HTML Page to an image

Posted: Wed Dec 29, 2004 10:25 am
by ktolga
i have written an application. users save a case by a web form. when users finish the case they close the report and print it.
the application must not let the user to print an open case files. to achieve this goal the application locates an background image on the print page if the case file is still open. but printing a background image is depend on ie's options (the option must be enabled). by default this option is disabled. it's hard to say everone enabling the option. so my background image is never printed.
i need a different way. for example: converting html page (including background image) to image file (jpeg,gif). i have explored whether this way is possible with PHP ChartDirector, but i couldn't find anything.
anyone suggest me an idea?

my PHP environment is PHP 4.3.8 + apache 1.3.28 + FreeBSD 4.9

Posted: Wed Dec 29, 2004 10:42 am
by feyd
why not use the powers of CSS and tell the entire page to not be printable when the case is open?

Posted: Thu Dec 30, 2004 10:10 pm
by ianlandsman
CSS is probably best as feyd said. I've done alot of work making HTML into images and it's basically impossible from PHP alone. You'll need command line tools and a bunch of other stuff. I usually use some custom Python code directly from my desktop (mac).

Posted: Fri Dec 31, 2004 12:06 am
by shiznatix
i usually enslave n00bs to do that sorta work so i can not help you...sorry