Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

293
Views
Printing a page on safari with window.print() doesn't work the second time

I am trying to print a page in Safari.

The first time it works fine, but if I click Cancel in the print dialog, and then click my print button again, it will just show a blank page on the print preview dialog.

In my case i am trying to print a PDF, so i am creating an invisible iframe and setting the content of it to be a PDF blob. (based on this library). But the same thing happens when trying to print the top level window.

Code example: https://codesandbox.io/s/throbbing-surf-tnuz6?file=/src/index.js

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!