react-pdf textlayer not working well with overlayed modal HTML elements #1604
Unanswered
viraj-lead
asked this question in
Q&A
Replies: 2 comments 1 reply
This comment was marked as spam.
This comment was marked as spam.
-
It appears to me like you may have shrunk the rendered canvas using CSS. This is not allowed. React-PDF must know the FINAL render size so it could align all the layers correctly. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using react-modal with react-pdf. The react modal overlays correctly on top of a Document. The issue is when I try to interact with elements on the modal, it interacts with the underlying text layer even though the modal HTML elements are overlayed on top of the underlying react-pdf layers.
See the selected text in the underlying text layer. I need to render the text layer as the user would select text from the PDF and use one of our APIs.
Beta Was this translation helpful? Give feedback.
All reactions