Open angel-langdon opened 2 years ago
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
I managed to solve this using pdf.js
API, react-virtualized
and some math/programming to transform coordinates into CSS/JS valid values
You can do it without using react-virtualized
but is much faster with it
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
@angel-langdon do you have an example of this?
^
@angel-langdon Hi, I'm facing the same issue as you, if I implement the search function with the current react-pdf, it will cause a lot of effort to draw highlight and jump, ... So could you share with us how could you deal with that problem with pdfjs and react-virtualized. Thanks in advanced!
Any updates on this? Being able to Ctrl+F a block of text on a pdf is an extremely important feature, and it is too buggy/glitchy in its current state because the search functionality is not quite there yet with react-pdf.
Before you start - checklist
Description
pdf.js
has native functionality to search inside the PDF usingPDFFindController
.It would be nice for
react-pdf
to have an interface to access these nativepdf.js
useful methodsProposed solution
I suggest adding necessary
props
forDocument
component that enables a way to search the PDF usingpdf.js
capabilitiesAlternatives
pdf.js
Additional information
Related Stackoverflow posts: