TCPDF ERROR: [Image] No such file or directory in...

Asked by ILT

Hi there,

Fantastic plugin, but I'm having trouble getting post images to show in the pdf.
I use 'images=true' in the URL. When the pdf starts to generate I get the following error:

TCPDF ERROR: [Image] No such file or directory in C:/htdocs/wordpress/rss-to-pdf/libraries/tcpdf//wp-content/uploads/2009/09/myimage.JPG

The image path appears to be combining the rss-to-pdf root folder and the Wordpress root folder. The 2 different locations are:

[rss-to-pdf] = C:\htdocs\wordpress\rss-to-pdf\libraries\tcpdf
[Wordpress images] = C:\htdocs\wordpress\wp-content\uploads\2009\09

I'm assuming something needs changing in tcpdf_config.php?
Can anyone help?

Many thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Five Filters Edit question
Assignee:
No assignee Edit question
Solved by:
ILT
Solved:
Last query:
Last reply:
Revision history for this message
ILT (iltdevunit) said :
#1

In tcpdf_config.php I've changed:

define ('K_PATH_URL', $k_path_url);
to
define ('K_PATH_URL', 'C:/htdocs/wordpress/rss-to-pdf/libraries/tcpdf');

Now one images (thumbnail) shows up, but 2 other images that are there in the rss dont appear in the pdf.

Can anoyone help?

Revision history for this message
Keyvan (keyvan) said :
#2

ILT: Is there a publicly accessible feed URL you can provide which reproduces the problem? It looks like you're running the code on your local machine but if you can reproduce the same or a similar problem with a feed which I can paste into fivefilters.org/pdf-newspaper/ then I can try to help out.

Revision history for this message
ILT (iltdevunit) said :
#3

Hi,
Unfortunately our Wordpress installation is only available internally. However, I have found the cause of the problem. One image was a bmp and the other had a jpeg extension. I converted the 1st image to jpg and renamed the other to jpg. Everything is now working as I'd expect.

Many thanks for youe help.