I started to use DOMPDF in my CodeIgniter project to render some information in PDF.
Everything is OK when I display the information in html. But… no images were displayed in PDF, for the same HTML code (info: images used for background).
Except images, the other CSS info were correctly displayed (color, text-indent,…).
I tried the same ‘kind’ of code without using CodeIgniter, and the images were generated correctly.
Conclusion: Problem using DOMPDF in CodeIgniter.
Some ideas? I tried many ‘random’ combinations, but it still doesn’t work. No google results for keywords ‘CodeIgniter, DOMPDF, CSS, Images’…
Thanks in advance.
After more testing, I was able to add images:
This worked for me, but I don’t know why.