Dompdf doesn't show images with a space in path
| Project: | Printer, e-mail and PDF versions |
| Version: | 6.x-1.10 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Hi and congratulations for this great module.
I use print module for generating a pdf version of a catalog views. I use imagefield + imacache and all is working very well, all images are shown in pdf, (I have "remote file access" set to "true" in dompdf_config.inc).
Recently, I use "powertoy resizer tool" for resizing images in a smaller and lighter version of images; this tool creates a copy of original image to a reduced version (example: "image.jpg" to "image (small).jpg").
The problem is when I upload the new reduced image to a node; the image is showed in the normal view but is not showed in pdf version. After testing and searching about it, I know the only problem is a consecuence of the "espace" in the name of the image. For some reaon, dompdf can't find the new image with a space.
Example:
http://www.mysite.com/files/image.jpg ----> pdf version works perfect
http://www.mysite.com/files/image (small).jpg ---> pdf version doesn't show image
How could solve this issue? It's strange because imagecache handle perfectly an image with a espace, and imagefield, too.
Please, could someone help me?
Thanks in advance

#1
I've tried (and failed) to solve this a few months ago. Simply put, if you're using dompdf, don't use spaces in the image filenames. Switch to TCPDF or wkhtmltopdf if you must really use spaces in the filenames.
See #416034: Image broken again in PDF? for the first report of this problem.