php - html to pdf - 100k to 200k records -


i having data set has around 1 million records.i generating pdf of more 100k rows.

i tested mpdf (goes out of memory if generate around 1800 records using html table) , fpdf (generates around 40k records - table based).

i don't want php application whole of memory avoid issue.

do have other library can use in php export more 100k rows in single go? code generates table using mpdf (i have excluded exports here)

   $html="<table>";               $html.="<tr>";               $html.="<td> <b> header 1</b></td>";               $html.="<td> <b> header 2</b></td>";               $html.="<td> <b> header 3</b></td>";               $html.="<td> <b> header 4</b></td>";               $html.="<td> <b> header 5</b></td>";               $html.="</tr>";                for($i=0;$i<1740;$i++){               $html.="<tr>";               $html.="<td>data 1</td>";               $html.="<td>data 2</td>";               $html.="<td>data 3</td>";               $html.="<td>data 4</td>";               $html.="<td>data 5</td>";               $html.="</tr>";          }         $html.="</table>";          $mpdf1->writehtml($html);         $mpdf1->output();         exit;  


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -