DomPDF images not working

Antonie PotgieterI (Antonie Potgieter) am a software engineer/web developer located in South Africa. My full-time work is the management of Tribulant Software and the development of its software packages.

PHP

Are you having problems with images not displaying in DomPDF generated PDFs?

The probable reason is because you’re linking your images in HTML with a path from the script or with an absolute URL like this:

OR

The solution is to change the image SRC to the absolute path on the server, like this:

That will fix the problem!