Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.15
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 07:15 UTC
Updated:
14 Jun 2012 at 19:51 UTC
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
Comment #1
jcnventuraCan 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.
Comment #2
jcnventuraComment #3
jcnventuraI 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..
Comment #4
pandroid commentedSorry, 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