Hi,

I'd like to convert a jpg image to a pdf document using the fpdf class. (www.fpdf.org).

here is the code :
<?php

require("fpdf.php");
$image="/pat/to/image.jpg";

$pdf = new FPDF();
$pdf->open();

$pdf->image($image,0,0);

$pdf->Output("/path/to/image.pdf",'F');
?>

but I only get a blank a4 pdf document when I open image.pdf using acroread.

does anyone have an idea how I can convert a jpg to a pdf ? (without paying if possible
the price for a commercial library).

thanks

N F

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to