If a page contains images which have spaces in their filename, the pdf ends up without the image.

Our fix was to add:
$pattern = "!(system/files/([^>]*?>))?(\+)!";
$replacement = '$1 ';
$html = preg_replace($pattern, $replacement, $html);

to line 150 of print_pdf.pages.inc

Comments

jcnventura’s picture

Status: Active » Needs review

Can I ask you to provide a patch? The module lines keep changing slightly, and I'm not sure if the 6.x-1.15 version that you mention is the one in which the above lines were inserted somewhere near (above? below?) line 150.

jcnventura’s picture

Status: Needs review » Needs work
jcnventura’s picture

Status: Needs work » Fixed

I can confirm this problem in dompdf, and I've solved it by replacing the space with %20.. Please test the latest dev in a few hours..

pandroid’s picture

Sorry, but not fixed in either 6.x-dev nor 6.x-1.17. (however my fix doesnt work either!)
Am using dompdf 0.6 beta3.

domdf reports the files as having + between the names and prints the 'missing image' icon.
Ivan

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.