Replies: 1 comment
-
For information, I found a partial solution to my problem in #18068, however we are still not able to have a functioning application. I hope to get some hints by more knowledgeable people around here. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to figure out how to use pdf.js in a programmatic way (without using the viewer wrappers that are provided in the project). The most comprehensive guide I found is here: https://www.sitepoint.com/custom-pdf-rendering/#renderingtextlayers however it seems outdated.
In particular:
the
TextLayerBuilder
constructor does not seems to be used correctlyThe textLayer.setTextcontent() seems to be outdated too, I found only setTextContentSource() which did not work
I did not find much around, just a lot of old issues, but nothing really up-to-date.
I'm working on a streamlit pdf plugin that uses pdf.js https://github.com/lfoppiano/streamlit-pdf-viewer and I'm trying to enable the textLayer on it in this branch, if you need to see some code: https://github.com/lfoppiano/streamlit-pdf-viewer/tree/enable-text-content
Beta Was this translation helpful? Give feedback.
All reactions