-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[api-minor] Attempt to support fetching the raw data of the PDF document from the PDFDocumentLoadingTask
-instance (issue 15085)
#19632
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
Conversation
b2d6312
to
58e6be3
Compare
58e6be3
to
42b6964
Compare
42b6964
to
4073004
Compare
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/3e05f4394abea18/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/2582765eefbdb56/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/2582765eefbdb56/output.txt Total script time: 2.48 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/3e05f4394abea18/output.txt Total script time: 7.96 mins
|
…ent from the `PDFDocumentLoadingTask`-instance (issue 15085) The new API-functionality will allow a PDF document to be downloaded in the viewer e.g. while the PasswordPrompt is open, or in cases when document initialization failed. Normally the raw data of the PDF document would be accessed via the `PDFDocumentProxy.prototype.getData` method, however in these cases the `PDFDocumentProxy`-instance isn't available.
4073004
to
9e8d4e4
Compare
PDFDocumentLoadingTask
-instance (issue 15085)PDFDocumentLoadingTask
-instance (issue 15085)
Looks good; thanks! |
Cheers, thanks! |
The new API-functionality will allow a PDF document to be downloaded in the viewer e.g. while the PasswordPrompt is open, or in cases when document initialization failed.
Normally the raw data of the PDF document would be accessed via the
PDFDocumentProxy.prototype.getData
method, however in these cases thePDFDocumentProxy
-instance isn't available.Smaller diff with https://github.com/mozilla/pdf.js/pull/19632/files?w=1
Edit: I also tested this patch in a local Firefox (artifact) build, and it seems to work as intended since the PDF document can now be correctly downloaded in the situations outlined above.