I specified the url of the logo for the pdf version of nodes and put the logo there. But it gives me the following error:

TCPDF ERROR: [Image] Unable to get image: http://localhost/sites/all/themes/mytheme/logo_print.png

But I checked the file name and path, which match with the logo url I entered. Wonder how to fix this.

Thanks

Comments

nirad’s picture

I have the same error. In my case it worked in my development environment but I started getting this error after moving to the production server.

davidjsn’s picture

I have no logo or images in the body in the pdf as well. All images appear in print and email. I'm using dompdf.

tms8707056’s picture

Same here. Using dompdf. The rendered PDF file doesn't include any of the images on the page. Tried with local files enabled and without. Neither works.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Please try to enable local files. Your server is probably not allowed to issue requests to itself.

@tms8707056: try wkhtmltopdf. It might be that dompdf can't handle your images correctly.

robbertnl’s picture

Same here. Also tried both with local enabled and without.
For now i disabled the module because its not working correctly with images here.

jcnventura’s picture

Can you try wkhtmltopdf?

jcnventura’s picture

Or better yet, can you re-enable the module, and send me the URL to a file with the problem?

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in more than two weeks. Closing the issue.