lsongdev / lsongdev/node-escpos
How to put two QRcodes on the same line?
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 443
- PR 合并指标
- 30 天内没有已合并 PR
描述
Using the following code will cause the qrcode to wrap. I want the qrcode to be at the same level. How can I modify it? thanks
device.open(function () {
printer
.qrimage('https://github.com/song940/node-escpos', { type: 'png', size: 5 },
)
.qrimage('https://github.com/song940/node-escpos', { type: 'png', size: 5 }, function (err) {
this.cut();
//this.close();
});
});
This is what I printed out:

I want to print this type of layout:

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先重现 device.open 内部的两个链式 qrimage 调用,并检查打印机输出与请求的布局有何不同。跟踪 qrimage 的入口点,并确定现有 API 是否支持水平放置;当记录或确认一种受支持的方法来将两个 QR 码打印在同一行时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- nodejs, typescript
- 领域
- embedded-iot
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100