1

I need BIG,BIG, html->pdf and get error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in .../clases/html2pdf_v4.01/parsingHTML.class.php on line 367

This html is collections os invoices to print. it is possible generate one by one invoce and add to big pdf?

Gracias!!

2

this is a PHP error... just read it, it says that you have not allowed enough of memory to PHP (32M here). look at your php.ini file
Ancien pseudo : lolo

3

I now that is php error. My question is it is possible ADD pdfs to existent pdf??

4

no, you can't, but you can call writeHTML several times
Ancien pseudo : lolo

5

I have next code

$html2pdf = new HTML2PDF('P','A4', 'es', false, 'ISO-8859-15', array(2, 1, 17, 0));
$html2pdf->pdf->SetDisplayMode('real');


for (...) {
ob_start();
include('./datos_factura1.php');
$content = ob_get_clean();
$html2pdf->writeHTML($content, isset($_GET['vuehtml']));


// Controlar la memoria usada para "partir" el pdf
if ($memory_limit < memory_get_usage()) {
$nombre = rand().'.pdf';
$html2pdf->Output($nombre,'D');
unset($html2pdf);
$html2pdf = new HTML2PDF('P','A4', 'es', false, 'ISO-8859-15', array(2, 1, 17, 0));
$html2pdf->pdf->SetDisplayMode('real');
}
}
$nombre = rand().'.pdf';
$html2pdf->Output($nombre,'D');


But only download 1 pdf ¿any idea?

6

it is because you can't send more than 1 file... but you can save the files on the server, and then create a zip file and send this zip file
Ancien pseudo : lolo