cordova-plugin-jspdf-printer
A plugin for cordova to print a jsPDF generated PDF on OSX/macOS 10.9+
Installation
Install the latest head version:
$ cordova plugin add cordova-plugin-jspdf-printer
Usage
The plugin creates an object printJSPDF
and is accessible after deviceready has been fired. This object contains a three functions:
printJSPDF.getPrinters([callback])
printJSPDF;
printJSPDF.getPrinterDescription(printerName[,callback])
printJSPDF;
printJSPDF.printPDF(doc.output(), printerName, width, height[, callback])
// Create jsPDF Documentvar doc = 'p' 'mm' 165328785; doctext'Sample Text' 15 80; // Print jsPDF DocumentprintJSPDF;
( Bypasses the system print dialog )