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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use public API for rendering cancellation #757

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

jeetiss
Copy link
Contributor

@jeetiss jeetiss commented Apr 1, 2021

page.render returns RenderTask instance https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L1216-L1220
that has cancel method https://github.com/mozilla/pdf.js/blob/master/src/display/api.js#L2929-L2935

Do you have any secret reason to use private API for cancelation? If not, this PR uses public 馃槍

Related to #736
Related to #374

@wojtekmaj
Copy link
Owner

I don't see how switching to public API could fix either of these issues, but it's definitely a welcome change.

@wojtekmaj wojtekmaj added the enhancement New feature or request label Apr 1, 2021
@wojtekmaj wojtekmaj changed the title Use public API for cancel rendering Use public API for rendering cancellation Apr 1, 2021
@wojtekmaj wojtekmaj merged commit d76ae11 into wojtekmaj:master Apr 1, 2021
@jeetiss jeetiss deleted the page-canceling branch April 1, 2021 12:36
@wojtekmaj
Copy link
Owner

Released with v5.3.0-beta.3 - I'd appreciate if you had a look if everything works properly and leave feedback in #748!

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

Successfully merging this pull request may close these issues.

None yet

2 participants