dompdf-0.5.1.zip gives WSOD
dompdf_0-5-2_alpha1.zip gives WSOD
tcpdf_4_6_024.zip gives huge images, larger than html layout
wkhtmltopdf-0.8.3-static.tar.bz2 gives corrupted file

any help?

Comments

Anonymous’s picture

sorry, dompdf_0-5-2_alpha1.zip gives fake images with a red cross on it

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide an URL to this page which is giving you problems?

Anonymous’s picture

jcnventura’s picture

I have no idea what's going on. Can you enable the printer-friendly page part of the module so that I can try to reproduce it at my end?

Anonymous’s picture

you can access to print functionality as
user:registrato
password:registrato

thanks a lot for your answer

jcnventura’s picture

That's a lot of pages in that book.. You're probably running out of memory in the process that creates the PDF. Note that the max PHP memory is around 32Mb usually, and a book that size will need a lot more than that to generate.

Anonymous’s picture

I've set a 128MB memory limit, but the problem is still there.

Anonymous’s picture

I've investigated deeper. It seems the problem is caused by tables.

http://www.snowpedia.it/printpdf/495 is not properly rendered - contains tables
http://www.snowpedia.it/printpdf/504 is not properly rendered - contains tables
http://www.snowpedia.it/printpdf/493 is properly rendered - doesn't contain tables - this image is oversizing the page
http://www.snowpedia.it/printpdf/45 is properly rendered - doesn't contain tables

I'm actually using tcpdf_4_8_007
any solution?

Anonymous’s picture

same issue with tcpdf_4_8_009
any solution?

jcnventura’s picture

Yes, you're right..

In my case, TCPDF 4.8.0009 only generates 3 pages and chokes up in some tables.

dompdf 0.5.1 gives a WSOD, with some errors in the log ("warning: DOMXPath::query(): Invalid expression in dompdf-0.5.1/include/stylesheet.cls.php on line 573.").

wkhtmltopdf 0.8.3 generates the complete PDF, but without any image... I have also a 128Mb memory limit.

There's nothing that can be done by this module in either case. Feel free to submit bug reports to each project.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in two weeks. Closing the issue.

Anonymous’s picture

Title: no library works » no library works (except dompdf)

dompdf_0-6-0_alpha2 is actually working
tcpdf_4_8_013 does not work
wkhtmltopdf-0.8.3-static does not work

Regarding dompdf do you have any Idea how to automatically resize images to fit in A4 pdf size?