-
-
Notifications
You must be signed in to change notification settings - Fork 889
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 with various valid PDFs #1530
Comments
Definitely related to the struct tree layer addition. I'm guessing the issue is when you have a pdf that is not tagged, or not tagged properly. This line @wojtekmaj We could first check that there are items with markedContent class set? |
What you say @MattL75 makes total sense to me - let's go for it. :) |
I will get on that * at the end of my work day |
Fixed in 7.1.2. Thanks @MattL75! |
Before you start - checklist
Description
After migrating from v6 to v7, the customTextRenderer function is no longer being called for our PDFs. We use this to add document highlighting. The issue seems to be around the TextLayer looking for
markedContent
classes, which are not present in the rendered DOM for many PDFs I've tested.PDF test url: https://www.soundczech.cz/temp/lorem-ipsum.pdf
This issue is also present in the test project, so its not related to our code.
Working document with highlighting:
Test document with no highlighting
Looking at the DOM of each document, you can see slight differences in structure.
Working document:
Not working document
Steps to reproduce
Use almost any PDF, have a customTextRenderer, see if that renderer is called. PDFs generated with the "print to PDF" functionality in browsers will have this issue.
Expected behavior
customTextRenderer is called for PDFs
Actual behavior
customTextRenderer is not called for many PDFs
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: