Skip to content
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

PDF print is not rendering the document second time on safari browsers #13562

Closed
eparirishit opened this issue Jun 15, 2021 · 2 comments
Closed

Comments

@eparirishit
Copy link

eparirishit commented Jun 15, 2021

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Safari / 14.0.3
  • Operating system and its version: BigSur
  • PDF.js version: Latest
  • Is a browser extension: No

Steps to reproduce the problem:

  1. Navigate to the demo link - https://mozilla.github.io/pdf.js/web/viewer.html
  2. Click on print
  3. The print renders the exact 14 pages
  4. Cancel the operation and click on print for the second time
  5. A pop-up comes up asking your permission to print/ cancel
  6. Click on print, rather than showing the 14 pages it shows 3 blank pages.

I am trying to skin on top of the default viewer and our team supports safari browser while implementation we came across this issue. I observed that during the second time when the pop-up is displayed the "data-pdfjsprinting" attribute is getting destroyed and it is unable to render the pages as expected.

What is the expected behavior? (add screenshot)
It should show the exact 14 pages as it did for the first time

image

What went wrong? (add screenshot)

image

image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): NA

@Snuffleupagus Snuffleupagus marked this as a duplicate of #7597 Jun 15, 2021
@Snuffleupagus Snuffleupagus marked this as not a duplicate of #7597 Jun 15, 2021
@Snuffleupagus
Copy link
Collaborator

Duplicate of #7597, since this issue looks similar enough.

Please note that the web platform unfortunately has quite limited support for controlling printing, and that Safari isn't the main focus of development in the PDF.js library.

@eparirishit
Copy link
Author

@Snuffleupagus, I think the issue I raised looks similar to #9578.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants