Forum How do I...?

External images in PDF

hpi_tuk
Hi all,

I am trying to include dynamically created images from an external source (Google charts API e.g. here) in my pdf, but only the alt-text is shown. This Problem was already discussed here but was marked as resolved in version 5.1 rev 3. What's wrong?

Thanks,
Dave
mikeday
Not sure. If I try <img src="http://chart.apis.google.com/chart?cht=p3&chs=200x90&chd=s:Hellobla&chco=0000ff"> it seems to work fine. Are you getting any error or warning messages? Try running with the --verbose command-line argument and see if it is really trying to download the image.
hpi_tuk
Ah, my fault.. I'm using the pdf_helper script for Ruby on Rails, there is a command, which replaces all "src=" with the path to the local rails image folder...
But the hint with the error message helped :)
So, thanks a lot!

Dave
mikeday
Perhaps worth passing a bug report back to the pdf_helper author, to change it so that src attributes beginning with http: or https: don't get rewritten. :)
hpi_tuk
Yes, that's the plan...

Thanks for your fast reply, I feel "helped" here :)