My PHP version is 5.0.3. I am using that pdf library in Drupal module
"Printer, e-mail and PDF versions" and when I click in the link to generate
the PDF file, the following error appears:
This means that the getimagesize() method is unable to get access to the
requested file.
You can change this by editing the php.ini and setting the allow_url_fopen
constant to On.
Anyway, you can get it working by simply specifying the width and height
(these are mandatory when using HTML mode).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the database record containing my image, I've added this:
<tcpdf method="Image" params="'rn_images/mobile_phone_dm_24.png',0,0,24,24"/>
-but it still says, TCPDF ERROR: Unable to get image width and height:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why you are using the TCPDF tag to insert an image? You can simply add it
using the html 'img' tag.
Anyway your syntax is wrong, please upgrade to the latest TCPDF release and
check the example n. 49.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wanted to used the tcpdf tag to add the image because the image does not get
rendered at all. My html looks like this:
<p>In the <strong>Devices</strong> tab, devices that have been bootstrapped are now shown with a special icon: <imgsrc="rn_images/mobile_phone_dm_24.png">. This makes bootstrapped devices easier to identify.</p>
The image is not output in the PDF (but looks fine in the HTML output). So I
tried the tcpdf tag... :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
My PHP version is 5.0.3. I am using that pdf library in Drupal module
"Printer, e-mail and PDF versions" and when I click in the link to generate
the PDF file, the following error appears:
TCPDF ERROR: Unable to get image width and height: http://192.168.123.21/site
s/all/themes/ovia/logo.png
Any Idea?
Thanks
This means that the getimagesize() method is unable to get access to the
requested file.
You can change this by editing the php.ini and setting the allow_url_fopen
constant to On.
Anyway, you can get it working by simply specifying the width and height
(these are mandatory when using HTML mode).
In the database record containing my image, I've added this:
<tcpdf method="Image" params="'rn_images/mobile_phone_dm_24.png',0,0,24,24"/>
-but it still says,
TCPDF ERROR: Unable to get image width and height:
...but I guess my problem is that the image name isn't understood.
Why you are using the TCPDF tag to insert an image? You can simply add it
using the html 'img' tag.
Anyway your syntax is wrong, please upgrade to the latest TCPDF release and
check the example n. 49.
I wanted to used the tcpdf tag to add the image because the image does not get
rendered at all. My html looks like this:
The image is not output in the PDF (but looks fine in the HTML output). So I
tried the tcpdf tag... :)
Please carefully check the default examples, then try to make one change at
time until works.
Me also.
Hi Nicola,
I have the same error...
TCPDF ERROR: [Image] Unable to get the size of the image: http://agriloja.eu/media/catalog/product/cache/4/image/363x/9df78eab33525d08d6e5fb8d27136e95/t/r/trator-hidrogenio_1.jpg
This image is reachable...
Magento ver. 1.9.0.1
what could it be?
Again as in the other thread: No, it isn't right now.
BTW: Did you check your allow_url_fopen setting as Nicola suggested?