qihang666 / bluetoothprinter Goto Github PK
View Code? Open in Web Editor NEWvue.js uni-app 跨平台app框架 蓝牙连接打印机 demo , ESC TSPL 协议与打印机交互, 鉴于网上资料太少,深知踩坑之痛苦,以此开源分享,如果对你有帮助 请点个Satrt,谢谢。开源**
vue.js uni-app 跨平台app框架 蓝牙连接打印机 demo , ESC TSPL 协议与打印机交互, 鉴于网上资料太少,深知踩坑之痛苦,以此开源分享,如果对你有帮助 请点个Satrt,谢谢。开源**
功能基本实现了,打印单张的时候没问题,多张的时候只有最后一条打印了,还有预览怎么实现呢?
[system] API openBluetoothAdapter
is not yet implemented
ios可以正常打印,安卓使用demo点击票据打印之后没有反应;
调试会显示:第【0】次写数据27,64,49,49,49,49,27,100,1
大佬 还维护吗。 我这边打印二维码 如果文本过长打印出来的二维码 扫描结果就是一串数字了 这个问题改怎么解决一下。
感谢
自带的那个分割没效果呀
如题
您好,想问一下打印怎么调整字体大小,看js里面好像没有设置字体大小的方法
uni.canvasGetImageData({
canvasId: 'edit_area_canvas',
x: 0,
y: 0,
width: 100,
height: 100,
success: function(res) {
console.log("print----image")
command.setSelectJustification(1, 49);
command.setBitmap(res); //没有黑白化处理
},
fail: function fail(res) {
console.log("fail---------------")
}
})
我用安卓手机测试,佳博打印机打印二维码只有一条我设置的文字和尺寸的字符串,没有二维码。
encoding-indexes.js是干什么的?只在国内使用能不能精简?500K太大了
我的设备是 资江58蓝牙热敏小票打印机,下载demo可以打印票据文字。
在官网上看到此款设备支持的是 ESC/POS指令。
求大神指导打印条码和二维码的demo
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.