I'm using a script that generates a PNG image based on a URL parameter image_id
.
For example: http://www.example.com/image.php?image_id=G554jGTT
Now I want to place that image in a pdf like so:
$imagepath = "www.example.com/image.php?id=" . $id;
$image = Zend_Pdf_Image::imageWithPath($imagepath);
When I use a local file all goes well, but when I use an URL I get the following error:
Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'Cannot create image resource. File not found.' in E:<...>\library\Zend\Pdf\Resource\ImageFactory.php:38
Does anybody know how to do this?
Thanks!