Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zakimohammed/printjs-firefox-fix

Providing fix for Firefox 110 blank print issue
https://github.com/zakimohammed/printjs-firefox-fix

javascript print-js

Last synced: 14 days ago
JSON representation

Providing fix for Firefox 110 blank print issue

Awesome Lists containing this project

README

        

# PrintJS App - Fix for Firefox 110 blank print issue

Providing fix for Firefox 110 blank print issue.

## Initial Setup

Adding dependencies:
```
npm i print-js
```

Adding CSS to the head:
```


...


```

Adding JS to the body:
```



...

```

## Printing PDF

Add button to HTML:
```
Default
```

Add scripts for button print:
```

const btnDefault = document.getElementById('btnDefault');

btnDefault.onclick = function () {
printJS({ printable: 'assets/file-lg.pdf' });
};

```