Hi, I am using the module together with dompdf (0.6 beta2). Everything works fine until I try to export a pdf of a translated page. Instead of the original images error images appear (red cross in back rectangle).

I found out that the images are displayed correctly if I replace the "en" in the path to the pdf-file with "de" (The page is in German (de), the translated version in English (en)). (e.g. http://localhost/en/printpdf/82 --> http://localhost/de/printpdf/82)
The problem is now that e.g. print $print['title']; prints the German title into the pdf. The text of the article appears in the correct language.

Any ideas?
Thanks, Mario

Comments

Martwig’s picture

Assigned: Martwig » Unassigned
jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Have you enabled "Access images via local file access" in admin/settings/print/pdf?

If so, getting the correct paths with language paths is something I never got completely right. You should disable that setting and let your webserver find the image by contacting itself.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

No further info in two weeks. Closing the issue.

Martwig’s picture

Status: Closed (won't fix) » Needs work

Thanks for your response!
Disabling the "Access images via local file access"-setting does not help. There are still error-images if I do not replace "en" by "de" in the pdf-access-path.

jcnventura’s picture

Status: Needs work » Active

Needs work is for a patch that I (or someone else) reviewed and didn't consider OK to commit. In this case the correct status is "active".

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

I've tested this, and can't reproduce it at all.. Can you test with a current version of the module? Maybe it got fixed in the meantime in another issue...

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further info in two weeks. Closing the issue.