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

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Can 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

etki’s picture

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active

I've been forgetting this :)

I'll change the status to see if I remember to look at it.

João

jcnventura’s picture

Status: Active » Closed (won't fix)

Hi,

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:


+  $print['content'] = file_get_contents(drupal_get_path('module'), 'print') .'8.htm');
  return $print

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