Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zakimohammed/printjs-firefox-fix
- Owner: ZakiMohammed
- Created: 2023-02-26T18:00:13.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T18:01:52.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T10:12:46.455Z (2 months ago)
- Topics: javascript, print-js
- Language: HTML
- Homepage:
- Size: 631 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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' });
};```