cordova-plugin-zpl-image-converter

0.1.2 • Public • Published

Cordova Plugin Image to ZPL Code

Hi! This cordova plugin converts images to ZPL-Code. To use this plugin you need the permission READ_EXTERNAL_STORAGE. This plugin is Android only.

Installation

npm install cordova-plugin-zpl-image-converter
cordova plugin add cordova-plugin-zpl-image-converter

Usage

(window as any).plugins.zplImageConverter.convertImage(filePath: string, width: number, height: number, angle: number, zplCode => {
    // Your code
  }, err => {
    // Your error-handling
});

angle describes the rotation of the image

If you set the height and width parameters to 0, no scaling will be performed.

Special Mentions

Based on: http://www.jcgonzalez.com/java-image-to-zpl-example Git-Repo: https://github.com/rafgenduke/cordova-plugin-zpl-image-converter

/cordova-plugin-zpl-image-converter/

    Package Sidebar

    Install

    npm i cordova-plugin-zpl-image-converter

    Weekly Downloads

    31

    Version

    0.1.2

    License

    Apache 2.0

    Unpacked Size

    13.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • rafgenduke