I want to insert barcode image in PDF which is generated from URL

eg. http:\\example.com\barcode.php?barcode=12345

$pdf->drawImage() seem not working with URL.

Any Idea How we can insert images using URL?

1 Answer 1


You have to first get the contents of the remote image and than you can add them to the pdf. Read this article: http://www.andrew-kirkpatrick.com/2012/11/using-zend_pdf-with-remote-amazon-s3-urls-files/

  • It means only way is, save image to local sever...
    – Sandesh
    Commented Feb 7, 2014 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.