Replies: 3 comments 4 replies
-
hello @maxpaleo You miss the lib, check out https://github.com/wojtekmaj/react-pdf |
Beta Was this translation helpful? Give feedback.
3 replies
-
you can add two <Documents and switch between them if its loading show the previous one basically and keep its key values the same so it wouldn't glitch |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have found a prop "loading". It expects Node or Render <Document
file={URL.createObjectURL(blob)}
onLoadSuccess={onDocumentLoadSuccess}
renderMode="canvas"
loading={
<Loading
height="100%"
backgroundColor="transparent"
/>
}
> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
We have integrated the library to in our application and are rendering a pdf from an HTML canvas. The issue is that every time a change is made in the canvas, react-pdf makes the element go black for half a second and shows "Loading pdf..." we are trying to find a solution to bypass this and instead have a transition from the version before the change to the new version.
Here is a short video that shows the issue: https://www.loom.com/share/436ea5eb86fc457eb0b94861627b1333
Beta Was this translation helpful? Give feedback.
All reactions