Cordova Print Plugin

€4.99
0 ratings

Plugin for Cordova to print documents, photos, HTML and plain text from iOS, Android and Windows Universal apps.

cordova.plugins.printer.print('<b>Hello Cordova!</b>');

Supported Printer Interfaces

Apple AirPrint

Android Print

Windows Print

Supported Content

HTML

Text

Base64

Images

PDF

Supported Platforms

Android 4.4+

iOS 10+

Windows 10 UWP

Browser

Basics

The plugin creates the object cordova.plugins.printer and is accessible after the deviceready event has been fired.

document.addEventListener('deviceready', function () {

// cordova.plugins.printer is now available

}, false);

Prints the contents of the web view:

cordova.plugins.printer.print();

Plain text:

cordova.plugins.printer.print("Hello\nWorld!");

HTML & CSS:

cordova.plugins.printer.print('<h1>Hello World!</h1>');

Images, PDF and other documents:

cordova.plugins.printer.print('file://img/logo.png');

Base64 encoded content:

cordova.plugins.printer.print('base64://...');

Note: On the browser platform the plugin only supports to print the contents of the web view.

I want this!
Size
253 KB
€4.99

Cordova Print Plugin

0 ratings
I want this!