Upgrading from pdfjs-dist from 3.5.141 to 4.6.82 #18826
Unanswered
mauricioxrodriguez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I currently have an angular solution running v3.5 and due to vulnerabilities found with packages the ask is to upgrade to the latest version. I went through the code changes in git and was able to locate the changes and the application runs stable. However, I have a searchable function that uses TextLayerBuilder class and uses the deprecated class prop textDivs to search for the term in that array and highlight it. Since textDivs is not available any longer, this prop has been migrated to the TextLayer class. I see TextLayer is added to the TextLayerBuilder as a member of the class but it is private and therefore I cannot access the textDivs. How can I access textDivs property from TextLayer class when using the TextLayerBuilder in this new version?
Beta Was this translation helpful? Give feedback.
All reactions