FPDF error: Image file has no extension and no type was specified:
Is the error I receive when I try to have this:
<img src="https://chart.googleapis.com/chart?cht=qr&chs=150x150&chl=LG-80294959&choe=UTF-8">
In my html, that FPDF will html2pdf convert.
So how can i do this? I really need this QR chart inside this pdf.
After spending hours on this exact problem I finally figured it out. First, as others has suggested, I did NOT need to add a &.png at the end of my url. The key turned out to be the spaces in the labels.
The above worked perfectly.
Here is the full code as requested. I removed the header and footer…
Then I simply echo’d the returned ‘$file’.
Here is the fpdf class I use: http://html2pdf.fr/en/download