//Open the url for the image server we wish to use.// (When I say "Image Server," I mean any program or // script which will render image data as output. That// means that it has to output the raw data, unmodified,// such that it could be accessed like this in a standard// html instruction call://// <img src="http://site.com/getimg.php?pic=18">//// If it adds border or other text, the data will be// corrupted, and thus cause the pdf to misrender.if ($stream = fopen('http://site.com/getimg.php?pic=18', 'r')) {$MyImage= stream_get_contents($stream, -1);fclose($stream);}

I've had a difficult time trying to load images to the pdf with pdflib, and tried many examples. I came across this one and it actually works for me in IE and Firefox. I hope this can be of some help to someone.