Converting HTML Page to an image

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ktolga
Forum Newbie
Posts: 1
Joined: Wed Dec 29, 2004 10:08 am

Converting HTML Page to an image

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

why not use the powers of CSS and tell the entire page to not be printable when the case is open?
ianlandsman
Forum Newbie
Posts: 24
Joined: Thu Dec 30, 2004 9:50 pm
Location: New York

Post 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).
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

i usually enslave n00bs to do that sorta work so i can not help you...sorry
Post Reply