electron-edge-printer
v1.11.0
Published
Printer api implementation for windows using electron-edge
Downloads
4
Readme
Node Module for implementing printer functionality using electron-edge
Features:
- compatible with electron : "1.4.13";
- compatible with electron-edge : "^6.5.3",
- compatible with node v6.10.0
getPrinters()
to enumerate all installed printers;getDefaultPrinter
to get Default Printer assigned to machine;printFile(FileName,printerName)
Print the specified file to the provided PrintergetSupportedPageSizesforPrinter(printerName)
to get Supported Page Sizes for provided PrintergetSupportedOutPutColorsforPrinter(printerName)
to get Supported Output colors for provided PrintergetSupportedPageOrientationsforPrinter(printerName)
to get Supported Orientations for provided PrintergetAvailableTraysforPrinter(printerName)
to get Available Trays for provided PrintersetPageSizeforPrinter(printerName,pageSizeName)
to Set given Page Size for provided PrintersetOutPutColorforPrinter(printerName,OutPutColor)
to Set OutPut Color for provided PrintersetPageOrientationforPrinter(printerName,pageOrientation)
to Set given page Orientation for provided PrintersetTrayforPrinter(printerName,TrayName)
to Set given Tray for provided Printer (Note:- This method need to be tested)
Install
$ npm install electron-edge-printer
Setup
Inside Client.js
Set <UrlToLoad> to web page path in
window.loadURL(<UrlToLoad>);
$ cd Examples\Client\code\
$ npm install
$ bower install
$ npm start
How to use:
Sample Web Page Using Angular 1.5 and electron-edge-printer
See example
License
MIT © Nikhil Wadibhasme