You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using only pdf.min.js script, how can I get the bounds value of a particular word/glyph in the PDF document.
Using the PdfJsPage.getTextContent function I got the bounds information of each line in the PDF document.
I want to know the bounds value of the particular word in the PDF page.
Use case: To implement custom search functionality and to obtain the bounds value of the searched word.
This discussion was converted from issue #18096 on May 15, 2024 14:22.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using only pdf.min.js script, how can I get the bounds value of a particular word/glyph in the PDF document.
Using the PdfJsPage.getTextContent function I got the bounds information of each line in the PDF document.
I want to know the bounds value of the particular word in the PDF page.
Use case: To implement custom search functionality and to obtain the bounds value of the searched word.
PDF: sample.pdf
If I search for the word 'Simple' in this PDF, I want to have the location of that particular word in that page.
Beta Was this translation helpful? Give feedback.
All reactions