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.

Contact Us Today!

Ionic 打印 Printer插件的安装(Installation)

ionic cordova plugin add cordova-plugin-printer npm install @ionic-native/printer
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/printer

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);