-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Public PDFFindController #260
Comments
Thanks! I've been trying to figure this one out - a great start! |
Relates to #115 |
Just a note:
For this I had to use the "newly" introduced PDFSinglePageViewer instead of the PDFViewer and it solved my problem also the search and outline function was working properly. My init function (after that the I can load the PDF)
My simplified search functions:
I hope it may helpful. |
I try this got error: |
You may have to update the version of the PDFJS in the package.json, that interface was introduced in the following version: (Releases: https://github.com/mozilla/pdf.js/releases) |
Made |
Bug Report or Feature Request (mark with an
x
)It would be great to have public PDFFindController member in the component in order to use the find feature of the PDFjs. I cloned the project and the following code was working fine if the
show-all
andrender-text
were true:public pdfFindController: any;
in the setupViewer:
this.pdfFindController = new (<any>PDFJS).PDFFindController({pdfViewer: this.pdfViewer}); this.pdfViewer.setFindController(this.pdfFindController);
In my test project:
this.pdfComponent.pdfFindController.executeCommand('find', { caseSensitive: false, findPrevious: undefined, highlightAll: true, phraseSearch: true, query: text });
Thanks in advance!
The text was updated successfully, but these errors were encountered: