print-pdf

Print DOM element to PDF

Usage no npm install needed!

<script type="module">
  import printPdf from 'https://cdn.skypack.dev/print-pdf';
</script>

README

print-pdf

Simple HTMLElement to PDF

Installation

npm i print-pdf

Usage

    import { PrintPDF } from 'print-pdf';
    
    new PrintPDF(document.body).printPDF();

General Information

This library is relatively new so please feel free to leave any suggestions. Fontawesome and glyphicons should work.

TODO

  • Inline images
  • Investigate performance enhancements
  • tests

License: MIT