-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
PDFJS new promise approach password and progress callback #11420
Comments
But, that's already almost the correct format. The only change necessary is that the last part needs to be Lines 422 to 506 in 693240c
That was the old format, which was removed more than two years ago. Please note that the types you're referring to are maintained in a different project, and as such there's no guarantee that they're correct and/or up-to-date.
Please see e.g. Lines 668 to 713 in 693240c
|
Ok thanks for the fast response
works perfectly. |
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
Hi I am trying to migrate this piece of code:
To the new promise logic without success
I tought looking to the
@types/pdfjs-dist
typesthat this would have been ok:
But it seems not and I didn't find any good example as well in the documentation or in the example app. Any help is appreciated
What went wrong?
The passwordCallback and progressCallback are not valid parameters infact I don't see them in the implementation.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered: