I have installed latest version of TCPDF on Drupal 7.54.

When I try to produce a pdf of this page https://certify.gdpm.com/learning I receivethe following error: TCPDF ERROR: [Image] Unable to get the size of the image: file:///home/novembe1/public_html/certify.gdpm/../pics/GDPM-Book.jpg

The picture is a normal jpg, linked via relativ path <img src="../pics/GDPM-Book.jpg" and stored in the Drupal directory with permission 755.

What is wrong?

Thanks,

Rolf

Comments

rolf.tschaeppeler created an issue. See original summary.

rolf.tschaeppeler’s picture

Issue summary: View changes
rolf.tschaeppeler’s picture

Is there any idea, what I can do?
Thanks for your support.
Cheers, Rolf

sarikak’s picture

This one resolved my issue.

  $logo = path_to_theme().'/logo.png'; 
  $tcpdf->Image($logo, 18, 10, 30, 0, '', variable_get('site_url', ''), '', TRUE, 150, '', FALSE, FALSE, 0, FALSE, FALSE, FALSE);
marchu’s picture

Se genera el mismo error cuando quiero abrir la vista pdf:
TCPDF ERROR: [Image] Unable to get the size of the image:..
Alguien sabe a que se debe el error?

Ollibolli’s picture

Category: Bug report » Support request
Priority: Major » Normal