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
Add document loading life cycle events #4448
Comments
There is no exact moment "when document has been rendered". The pages are rendered when they become visible. Only one page documents are "fully" rendered. To find keywords in the document, the find UI can be used, which will index PDF page by extracting the text content page-by-page. Do you mean to add event to signal when keyword is found or not found? |
Hi, Yury! Actually I try to use such code sample to highlight keywords: I try to call it after each call of PDFView.open('url', 0) but it does not work because at the moment when PDFFindBar is called the document is not rendered yet The perfect way would be to call something like that: |
On the other hand more flexible way is to subscribe for some events which can looks in this way: |
There's the |
There is need for life cycle events in case if PDFJS is used to review multiple documents.
Here is scenario:
For now there is no way how to catch a moment when document has been rendered.
The text was updated successfully, but these errors were encountered: