Craig
I have been over the "readme.pdf" document several times, but I can't find anything that answers why my images wont appear.
What version are you using? I am using version 009.
My code looks like this:
/* Create PDF file */
include('class.ezpdf.php');
$pdf =& new Cezpdf();
/* Set title of PDF Document */
$pdf -> selectFont('./fonts/Helvetica.afm');
$pdf -> setLineStyle(1, 'round');
$pdf -> line(30, 760, 550, 760);
$pdf -> line(30, 820, 550, 820);
$pdf -> ezText($row['title'], 20, array('justification'=>'center'));
/* Set header image */
$image = "image.jpg";
$pdf -> addJpegFromFile($image, 30, 660);
/* Set date of PDF Document */
$pdf -> ezText(' ', 10, array('justification'=>'left'));
$pdf -> ezText('Published '.$row['date'], 10, array('justification'=>'center'));
$pdf -> ezText(' ', 10, array('justification'=>'left'));
/* Set body of PDF document */
$pdf -> ezText(' ', 10, array('justification'=>'left'));
$pdf -> selectFont('./fonts/Times-Roman.afm');
$pdf -> ezText($row['content'], 12, array('justification'=>'left'));
$pdf -> ezstream();