lsongdev / lsongdev/node-escpos

How to put two QRcodes on the same line?

未关闭
#369 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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:
IMG_4273

I want to print this type of layout:
IMG_4274

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先重现 device.open 内部的两个链式 qrimage 调用,并检查打印机输出与请求的布局有何不同。跟踪 qrimage 的入口点,并确定现有 API 是否支持水平放置;当记录或确认一种受支持的方法来将两个 QR 码打印在同一行时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
nodejs, typescript
领域
embedded-iot
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。