I have a very large dataset in the MySQL database that I want to export in a PDF file.
I am working in PHP and tried popular solutions like DOMPdf and Mpdf.
They all work in a similar way, preparing the complete data in HTML and feeding it to their functions to generate the PDF files.
My problem is that I cannot generate the whole HTML files at once and it is very resource-intensive to fetch complete data in a single query and generate that whole HTML.
I have already created a CSV file with that data. It was simple to do in batch as I can fetch a few entries from the database, write them in a file and then run the same process through Ajax to append the data.
I am looking for a similar solution to generate this large PDF file.
Please suggest the best way to handle it.
Thanks
I am working in PHP and tried popular solutions like DOMPdf and Mpdf.
They all work in a similar way, preparing the complete data in HTML and feeding it to their functions to generate the PDF files.
My problem is that I cannot generate the whole HTML files at once and it is very resource-intensive to fetch complete data in a single query and generate that whole HTML.
I have already created a CSV file with that data. It was simple to do in batch as I can fetch a few entries from the database, write them in a file and then run the same process through Ajax to append the data.
I am looking for a similar solution to generate this large PDF file.
Please suggest the best way to handle it.
Thanks