Forum Moderators: coopster
<?php
exec( "convert input.pdf -size 1024x768 output.png -resize 1024x768" );
?>
of course... assuming you have it installed on your server, which most servers do.
[edited by: McBlack at 9:21 pm (utc) on Dec. 24, 2008]
I'm not sure if this would work, but try something like this with ImageMagick, as coopster said above.
<?php
exec( "convert input.pdf -size 1024x768 output.png -resize 1024x768" );
?>
of course... assuming you have it installed on your server, which most servers do.
I check my php info and on one domain it seems installed. so I run the above code with a input.pdf in the same dir, had the dir on writeble and nothing happens when the file was run. (I was expecting it should create png's in the same dir)