Closed (won't fix)
Project:
Printer, email and PDF versions
Version:
6.x-1.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 15:23 UTC
Updated:
26 Mar 2009 at 17:17 UTC
creating of print version of whole book is working
creating of subnodes is work
but when i creating pdf from whole book only one empty page is generated.
php memory limit is 512M
max execution time is set to 180
i am using tcpdf
Comments
Comment #1
jcnventuraCan you post as attachment the print version of the whole book? Or send me a PM message and I will tell you my 'real' e-mail for you to send it to me.
João
Comment #2
etki commentedthis is print version of the whole book
http://www.gymspmkr.edu.sk/javatutorial/sk/print/book/export/html/8
Comment #3
jcnventuraI've been forgetting this :)
I'll change the status to see if I remember to look at it.
João
Comment #4
jcnventuraHi,
I have taken a look at it, and it seems that what you're trying to do exceeds TCPDF's capabilities. At some point in the "Opdovede na otazky a riesenie uloh: Operatory" chapter, it simply is unable to proceed any further. The point at which it does that is just some normal HTML inside a double
<li>tag (2.a. Otazka: [...]).I was hoping that it would be some unnacepted HTML that I should filter, but the way it is, I simply can't do anything about it. This has to be fixed by TCPDF itself (I tested version 4.5.032).
If you want to try to test like I did, save the printer-friendly version file to disk, move it to the print module folder, remove everything before and including the div class="print-content" and everything after and including the div class="print-taxonomy".. Then add the following code to the end of print_controller() in print.pages.inc:
Make a backup copy and start deleting chapters until you get to one that manages to create the PDF.
The only possibilities to solve this are:
1. Forget about online PDF generation, use the printer-friendly version to generate a 'clean' HTML file, import that file in Word and generate a PDF there and offer that one for download.
2. Divide your text into smaller units that manage to get accepted by TCPDF to print.
3. Try dompdf, but as your text is in Slovak, you'll get only garbage out in every non-latin character.
João Ventura