I tested in 6.x-1.4 and latest dev. Attache Images and Site logo won't print in PDF. You can test it here: http://greatbrewers.com/list/46845.
Also, when a user tries to print out a PDF. those warnings display

* warning: DOMXPath::query() [function.DOMXPath-query]: Invalid expression in /home/greatbre/public_html/sites/all/modules/print/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
* warning: DOMXPath::query() [function.DOMXPath-query]: Invalid expression in /home/greatbre/public_html/sites/all/modules/print/dompdf-0.5.1/include/stylesheet.cls.php on line 573.
* warning: Invalid argument supplied for foreach() in /home/greatbre/public_html/sites/all/modules/print/dompdf-0.5.1/include/stylesheet.cls.php on line 575.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

There's been a few changes recently to the the PDF image handling code for the case of multi-lingual sites using the private download method. Your site doesn't seem to be in this case, so I don't see why you have problems in 1.4 that were not there in version 1.1. I can't use the web print version nor the PDF in the above URL, so I can' t see what the problem is in your case.

Forget the warnings, as I told you in #386142: Error with stylesheet.cls.php, there's nothing that can be done about it.

João

skyredwang’s picture

Status: Postponed (maintainer needs more info) » Active

Very sorry that I forgot the permission. Could you revisit http://greatbrewers.com/list/46845.

I completely reinstalled Print Module last Friday. Thanks

jcnventura’s picture

Hi,

I don't know why your site's logo isn't printing.. I would have expected it to show up as a red cross like some of the other images..

The others aren't showing up because they have spaces in them.. I have to investigate further if something can be done in the dompdf handling code in this module.

dompdf is also screwing up the stuff in the Availability fieldset. Are you sure you weren't using TCPDF before?

João

skyredwang’s picture

I have been using Dompdf, and we had mentioned broken images in your new devs. see http://drupal.org/node/359343#comment-1212773

jcnventura’s picture

That one barely mentions images at all.. You had indeed reported a problem with images with spaces, but that was with the send e-mail function, which I handled by replacing the spaces in the URL with %20 (#356073: Sending Email has Problems with Image Module and Hide Submit Module).

I am going to try a simple test with spaces in the URL of the img and I will see if dompdf can be convinced to access it (maybe also with %20 instead of spaces).

João

jcnventura’s picture

Status: Active » Closed (won't fix)

Well, I have tried this and simply said, nothing can convince dompdf to properly support images with spaces in them..

João

syoga’s picture

just replace the space with "%20"
str_replace(" ", "%20", $file->filepath)
It will work

syoga’s picture

just replace the space with "%20"
str_replace(" ", "%20", $file->filepath)
It will work