Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search functionality not working if i set show all false. #314

Closed
arjunrajappan opened this issue Apr 24, 2018 · 1 comment
Closed

Search functionality not working if i set show all false. #314

arjunrajappan opened this issue Apr 24, 2018 · 1 comment
Milestone

Comments

@arjunrajappan
Copy link

arjunrajappan commented Apr 24, 2018

Search functionality not working if i set show all false.

I just want to search in a single page instead of searching in all page. My search inputs are not highlighting.

I want to know what are the other commands that are available in pdffindcontroller.executecommand

@kylewanderson
Copy link

After a bit of poking around, I notice that when _showAll is false, pdfViewer.setDocument is never called. Calling setDocument with _pdf sets the document to the whole file. I'm not super familiar with the inner workings of pdf.js, but calling setDocument seems to set up the needed wiring for findController to function. Setting the document on the viewer with a subset of the PDFDocumentProxy seems like a possible solution, but I don't know how to create a sub document from a full file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants