Skip to content

Enhancement: ability to detect when operation has completed #1754

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

Closed
RichardBradley opened this issue May 15, 2018 · 1 comment
Closed

Enhancement: ability to detect when operation has completed #1754

RichardBradley opened this issue May 15, 2018 · 1 comment

Comments

@RichardBradley
Copy link

When rendering a large page to PDF, it may take a few seconds for the browser to pop up a "save as" dialog to the user. I would like to show a spinner during this time and hide the spinner when jsPDF completes.

Currently there is no way to detect when this happens.

It would be nice if "save()" could return a Promise that will complete when the operation has finished.

Are you using the latest version of jsPDF?

Yes, this affects current master, 7d9f141

@Uzlopak
Copy link
Collaborator

Uzlopak commented May 27, 2018

Duplicate of #540

@Uzlopak Uzlopak marked this as a duplicate of #540 May 27, 2018
@Uzlopak Uzlopak closed this as completed May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants