Printer
Prints documents or HTML rendered content
联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Ionic 打印 Printer插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Ionic 打印 Printer插件支持的平台(Supported Platforms)
- Android
- iOS
- Windows
Ionic 打印 Printer插件的用法(Usage)
import { Printer, PrintOptions } from '@ionic-native/printer/ngx';
constructor(private printer: Printer) { }
...
this.printer.isAvailable().then(onSuccess, onError);
let options: PrintOptions = {
name: 'MyDocument',
printerId: 'printer007',
duplex: true,
landscape: true,
grayscale: true
}
this.printer.print(content, options).then(onSuccess, onError);