You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are viewing the first page in the document.
Scroll to the bottom of the document (page 14), one page at a time.
Click the print toolbar button to print the document.
What is the expected behavior? (add screenshot)
The document should print properly.
What went wrong? (add screenshot)
The document doesn't print and an exception is thrown:
Running through the javascript debugger, I can see the viewer is destroying PDFPageView objects as they fall outside the 10-page window of pages loaded into page view buffer. When a PDFPageView object is destroyed, the PDFPage object attached to it is cleaned-up and nullified. The printing exception is the result of attempting to access the viewport from one of these destroyed PDFPageView objects.
The text was updated successfully, but these errors were encountered:
Removing the following line fixes this, so it's unfortunately a fairly serious (printing) regression from PR #8746. Note: It also affects the version of PDF.js that's shipping in Firefox.
* @returns {Promise} Returns a promise containing a {PDFPageProxy} object.
* @private
*/
_ensurePdfPageLoaded(pageView){
to re-fetch the deleted pdfPages before accessing them.
Currently however, the printService is initialized synchronously, so I'm not sure if we can easily transition it to be asynchronous instead. @yurydelendik Since you wrote the patch in PR #8746, can you please help here?
Link to PDF file (or attach file here):
Configuration:
Steps to reproduce the problem:
What is the expected behavior? (add screenshot)
The document should print properly.
What went wrong? (add screenshot)
The document doesn't print and an exception is thrown:
Running through the javascript debugger, I can see the viewer is destroying PDFPageView objects as they fall outside the 10-page window of pages loaded into page view buffer. When a PDFPageView object is destroyed, the PDFPage object attached to it is cleaned-up and nullified. The printing exception is the result of attempting to access the viewport from one of these destroyed PDFPageView objects.
The text was updated successfully, but these errors were encountered: