simplyprint-js
v2.0.4
Published
A package to more simply print html as a pdf document or image file.
Downloads
8
Maintainers
Readme
simplyprint-js
A package to more simply print out a section of html or save as a pdf.
npm install simplyprint-js
//Global.d.ts
decalre module '*.css' //or declare module '*.module.css'
import { Printer } from 'simplyprint-js'
import css from 'scrapbook.css' //or import css from 'scrapbook.module.css'
const cssArray = [css]
var printer = new Printer('#scrapbook', cssArray)
printer.print()
This then brings up a printing menu from whichever browser is being used. A pdf can be downloaded from this menu if needed.