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

Trigger page rendered event #10230

Closed
ghost opened this issue Nov 7, 2018 · 2 comments
Closed

Trigger page rendered event #10230

ghost opened this issue Nov 7, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 7, 2018

Does anyone know how to trigger page rendered event?
I want when certain page loaded and rendered succesful, and it will trigger an event for me to do extra steps.

@timvandermeij
Copy link
Contributor

timvandermeij commented Nov 7, 2018

You can listen for the pagerendered event and attach a handler; see:

pdf.js/web/app.js

Line 1287 in f6bc934

eventBus.on('pagerendered', webViewerPageRendered);

@ghost
Copy link
Author

ghost commented Nov 8, 2018

Thanks.

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

1 participant