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
Spipu Le 16/02/2009 à 20:40 try to generate the PDF page by page, by using writeHTML foreach page
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...?
Thank you, Spipu. Sorry about not making a new topic.
Spipu Le 31/03/2009 à 19:09 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();
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.