Git Product home page Git Product logo

cordova-plugin-bixolon-printing's People

Contributors

itskaynine avatar

Stargazers

 avatar

Watchers

 avatar  avatar

cordova-plugin-bixolon-printing's Issues

Error: Open Failed

Hi, I've just started working on your plugin but every time I try to connect to the printer it calls the error callback function and gives the following error:
Error: open Failed

I am trying to implement a simple connect example that you mentioned:

                cordova.plugins.BixolonPrinting.connect(function () {
                    alert('Success')
                }, function (err) {
                    alert('Error: '+err)
                }, {
                    logicalDeviceName: 'SRP-350III',
                    deviceBus: cordova.plugins.BixolonPrinting.DEVICE_BUS.USB, // cordova.plugins.BixolonPrinting.DEVICE_BUS
                    address: '',
                    secure: true
                });

I am using Bixolon SRP-350II USB printer.

wait to send to printer

Hi
First of all, I would like to state that I found your work very successful.
In our application, I send the image that I converted to png with html2canvas to my sppr310 printer.
My image in 300*500px scale takes 7 seconds to print to the printer, it takes longer for me if I enlarge the image a little too much.
Can you help me send it to the fastest printer?
I apologize for my English.
I pay my respects.

Uncaught SyntaxError: Unexpected identifier

Your are missing the comma in the wifi example:
base64Image: b64Image -> base64Image: b64Image,

// Connect to printer
cordova.plugins.BixolonPrinting.connect(
function(res) {

    // Printing options
    var printObj = {
        base64Image: b64Image,
        width: 500,
        brightness: 50,
        alignment: cordova.plugins.BixolonPrinting.ALIGNMENT.CENTER,
    };

    // Perform printing
    cordova.plugins.BixolonPrinting.printBitmap(
        function(res) { 
            alert("SUCCESS"); 

            // ... Do other things or just disconnect()
        }, 
        alertError, 
        printObj
    );
},
alertError,
connection

);

Print PDF file

Hello,

Is it possible to print a pdf?
Maybe base64?!

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.