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

python - Mongodb How to add addtional information when aggregating? -

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

ruby - Net::HTTP extremely slow responses for HTTPS requests -