Open joshualoehr opened 1 year ago
The same issue occurs when the image is moved down by a fixed View
, that causes the image to overflow the page.
Here is a CodeSandbox to reproduce the problem: https://codesandbox.io/s/react-pdf-crash-when-rendering-too-high-images-9ok4us?file=/src/index.js
Setting the bottomImageHeight
to 650
will cause the renderer to crash/hang.
Interestingly the page renders without any issues when the image is not moved down by a top position or a fixed View
, even if the image has more height than the page and overflows.
Describe the bug Page crashes/hangs when Images overflow off the page, instead of starting on the next page.
To Reproduce Reproducable in the repl using the code snippet below. Just change the value of
top
from 100 to 600 or greater.Possibly related to #874?
Expected behavior The Image starts rendering on a new page.
Desktop (please complete the following information):