itskaynine / cordova-plugin-bixolon-printing Goto Github PK
View Code? Open in Web Editor NEWBixolon mobile printer plugin for Cordova
License: Apache License 2.0
Bixolon mobile printer plugin for Cordova
License: Apache License 2.0
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.
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.
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
);
Hello,
Is it possible to print a pdf?
Maybe base64?!
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.