crabbly / crabbly/Print.js

On Safari OSX when printing a pdf the first call to Print.js always shows a blank page. Subsequent calls work fine.

Open
#564 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.5k
Forks
688
PR merge metrics
No merged PRs in 30d

Description

I am on Safari 14.0.3 (OSX) and printjs 1.6.0.

I call printjs like so:
```
printJS({
printable: url,
type: 'pdf'
})
```

The first time I do this, the print dialog opens, but it always shows a blank page.

I close the print dialog and try again.

Now Safari shows an alert "This webpage is trying to print. Do you want to print this webpage?" This alert did not appear on the first try. I click "yes" and everything now works as expected.

So it is just the the first call to printjs that is not working correctly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.