-
-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customTextRenderer is not called #1593
Comments
I have exactly the same problem. For this particular pdf defined The method was executed correctly on the other pdf I worked on so far (using exactly the same code). Environment
|
What is even more funny, it works on the majority pages of the PDF I attached in the reproduction section except a page number 4. I guess this is because this particular page had elements with class name "markedContent" in it somewhere to the top. Please check if your PDF from Volvo also has elements with the same class name in problematic places |
Yup, I can confirm that marked content seems to have something to do with it. AFAICT, the moment this lib sees |
Yes having this same issue with markedContent! |
Before you start - checklist
Description
Well, customTextRenderer is not called!
My guess is because of this particular line:
https://github.com/wojtekmaj/react-pdf/blob/v7.3.3/src/Page/TextLayer.tsx#L222
It seems that this layer has some marked content, but it is above the text I'm talking about (see "steps to reproduce").
It should not affect the text being rendered in any way.
Steps to reproduce
Expected behavior
customTextRenderer is called
Actual behavior
customTextRenderer is not called
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: