1

Hello,

I generate with SQL a pdf pricelist, Sometimes more than 10 pages.

The problem is it takes almost 7 minutes to generate the pdf of 11 pages! Each page contains a table with data.

When I generate only the html it takes about half a minute,

Is there a way to fasten this process?

Thanks in advance.

Thijs

2

try to generate the PDF page by page, by using writeHTML foreach page
Ancien pseudo : lolo

3

Is it possible to have a footer on all pages that is the same except that on the last page something like a grand total would be displayed?

If not, is it possible to have something float on the bottom of the last page only...?

4

you can use this : topics/119933-v319-contenu-variable-positionner-un-element-en-bas-de-derniere-page#12

but please; create a new topic for each answerwink
Ancien pseudo : lolo

5

Thank you, Spipu. Sorry about not making a new topic.

6

Spipu (./2) :
try to generate the PDF page by page, by using writeHTML foreach page


Thanks for your answer. But generating per page doesn't make any difference.

Another problem is when i have to generate i very large pdf (more than 40 pages) my server gives an error.

Perhaps is generating the pdf foreach page therefore a good solution, Now i have to find a solution to merge the pdfpages to 1 document.

7

qoncept (./6) :
my server gives an error.


what is the error ?
Ancien pseudo : lolo

8

Spipu (./7) :
qoncept (./6) :
my server gives an error.


what is the error ?



it is an error 500: internal server error



9

Perhaps you have a script to merge multiple pdf files?

I'm already searching with Google smile

By the way, I love your html2pdf script. We are using it more and more and it can replace serveral applications.

10

for error 500 : it could be a pb of memory-limit. try to ecrease it in php.ini

for merge multiple pdf file : no sorry...

but try like this :

$content1 = '.....';
$content2 = '....';
...

$html2pdf = new HTML2PDF(...);
$html2pdf->writeHTML($content1);
$html2pdf->writeHTML($content2);
....
$html2pdf->output();
Ancien pseudo : lolo

11

Oke guys,

i've got a solution. Unfortunately not the solution I'd like to see but I can't make up another.

I create a maximum of 8 pages per time. After that i merge the pdf pages with pdftk.