dompdf considers image paths with a full URL (i.e. one with a domain part such as http://example.com/image.png) to be "remote." There are a few settings that are important when handling remote images:
DOMPDF_ENABLE_REMOTE
should be set to true- The account running your script (e.g. your web server) needs read/write access to the folder specified by
DOMPDF_TEMP_DIR
- dompdf fetches remote images using
file_get_contents()
which will only work ifallow_url_fopen
is enabled (some hosts disable this) - dompdf will probably need to use the GD PHP extension for some image processing
It's also important to note that dompdf 0.5.x has problems with dynamically-generated images because it relies heavily on extension for image type detection. You can try to trick it by appending a filename to the end of the URL, but this doesn't always work. The dynamic image problem was addressed in version 0.6.x (currently in beta, but still recommended).
Finally, if you're using dompdf 0.6.x check out the setup file (dompdf/www/setup.php) which will let you know if there are any problems with your installation.