sul-dlss / sul-embed

An oEmbed Service for Stanford University Libraries
Other
19 stars 6 forks source link

PDF Viewer: investigate ability to search within PDF #1818

Open peetucket opened 10 months ago

peetucket commented 10 months ago

See #1791 for background. It is desirable to have the sul-embed PDF viewer behave more the like the Mozilla default view.

HOLD until #1834 is complete.

Investigate if possible to add search within the PDF page.

For reference and potential re-use under the Apache license:

Mozilla viewer HTML page: https://github.com/mozilla/pdf.js/blob/master/web/viewer.html Mozilla viewer JS/CSS/images: https://github.com/mozilla/pdf.js/tree/master/web

See also #1816 and #1819

peetucket commented 10 months ago

See:

https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_controller.js https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_bar.js https://github.com/mozilla/pdf.js/blob/master/web/pdf_find_utils.js

This PDF from our own stacks demonstrates search does work when there is embedded OCR.