Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the
PDFViewerApplication._contentLength
handling in the vie…
…wer, related mostly to scripting Ensure that `PDFViewerApplication._contentLength` is always updated with the *correct* length, as returned by `PDFDocumentProxy.getDownloadInfo`, and only let the `PDFViewerApplication._initializeMetadata` method overwrite if it's not already been set. Finally, in `PDFViewerApplication._initializeJavaScript`, the fallback `_contentLength` handling is now moved to just after the fallback `documentInfo` handling, such that all the fallback code is in one place within the method.
- Loading branch information