react-to-pdf
react-to-pdf copied to clipboard
Black pages PDF file download after 10 pages
I downloaded PDF of table DataGrid in Nextjs and after 10 pages or 500+ rows in the table, the pdf shows the black pages. I also attached the PDF file. movement.pdf
There is a limitation on the size of the canvas in the browser which is used internally to generate the image included in the pdf, which is probably the cause here. So it's not suitable for a large number of pages, unfortunately. You can try decreasing the resolution as a workaround.
Similar issue: https://github.com/ivmarcos/react-to-pdf/issues/83#issuecomment-1729683593
I'll include this in the README soon as an important note.