Replies: 1 comment
-
@AscEzio could you share the code here? I'm investigating the same problem, and I've been facing the same issues as you did. |
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
-
Attach (recommended) or Link to PDF file here: No(Because of developing)
My problem: I've been searching online for how to use TextLayerBuilder to render text onto the DOM, but the text isn't being rendered to the specified DOM element; the target DOM is empty. What's more, I have many doubt about TextLayerBuilder.
References:
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
I hope it can be like this. Users can select text and copy.
What went wrong? (add screenshot)
The dom that render text is empty.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Here is my project in github:
https://github.com/AscEzio/pdfViewer/blob/fix/TextLayerBuilder/src/utils/renderPDF.js
Sorry for my poor english and front-end technique
Beta Was this translation helpful? Give feedback.
All reactions