PhpSpreadsheet/samples/Pdf
oleibman 81dd743d3f
Mpdf With Very Many Styles (#2434)
Fix #2432. Probably for memory reasons, PhpSpreadsheet divides its data into chunks when writing to Mpdf. However, if the first chunk has so many styles that the `body` tag is not included in the chunk, Mpdf will not handle it correctly. Code is changed to ensure that the first chunk always contains the body tag.

Because this error becomes evident only when opening the PDF file itself, it is difficult to write a test case. I have instead added a new sample file which meets the conditions which would have led to the error, and which can be examined to show that it is created correctly.
2021-12-07 10:46:21 -08:00
..
21_Pdf_Domdf.php Simplify IOFactory to rely on autoloading 2017-10-22 01:54:14 +09:00
21_Pdf_TCPDF.php Simplify IOFactory to rely on autoloading 2017-10-22 01:54:14 +09:00
21_Pdf_mPDF.php Simplify IOFactory to rely on autoloading 2017-10-22 01:54:14 +09:00
21a_Pdf.php Different Example for Callback 2020-06-09 00:22:22 -07:00
21b_Pdf.php Codestyle clean-ups 2020-10-09 16:08:20 +02:00
21c_Pdf.php Mpdf With Very Many Styles (#2434) 2021-12-07 10:46:21 -08:00