A Proof of Concept for printing table from data available on client side by a button click. First, a pdf is getting created using pdfjs + jspdf-autotable, then pdf.js will render each pdf page into a HTML canvas. These canvas elements placed into a hidden iframe, which will finally be printed. All of this is triggered by a single button.
- Clone the project:
git clone https://github.com/gtgt/poc-jspdf-pdfjs-print.git
- Enter into working copy, then:
npm install
- Compile / run / watch the project by:
npm start
- Same as run, but
- Build with:
npm build
. The result will be indist
folder.