android - Printer Android - 打印机在行首打印点
问题描述
我正在尝试在具有本机反应的蓝牙 dpp 350 打印机上打印。打印机正在正确打印。但是,每行的开头都会有一个点离开。
我已经尝试了几种编码和代码页,但我无法删除行首的那个点。
我正在使用 react-native-bluetooth-escpos-printer 库
let config = {
encoding: 'ISO8859_1',
codepage: 1,
widthtimes: 0,
heigthtimes: 0,
fonttype: 1
}
await BluetoothEscposPrinter.printText("Testando impressão!\r\n", config);
await BluetoothEscposPrinter.printText("I need help!\r\n", config);
await BluetoothEscposPrinter.printText("I need help!\r\n", config);
await BluetoothEscposPrinter.printText("I need help!\r\n", config);
await BluetoothEscposPrinter.printText("I need help!\r\n", config);
请问,有谁知道如何从行首删除这一点?
解决方案
推荐阅读
- html - 如何在 Jmeter 中提取多个 HTML 元素的值?
- r - ggplot 找不到数据集中存在的值
- makefile - 如何在Makefile中将变量键插入jq?
- python - 从音频文件读取数据时出现语音识别错误
- c# - 在 C# 中将 ZXing.Common.BitMatrix 转换为位图 Zxing
- javascript - 使用汇总捆绑访问整个 ES6 模块中的对象实例
- arrays - 如何更改 Golang 结构值的位置?
- r - 从逻辑回归模型 (R::lme4) 中提取具有 95% CI 的预测变量效应
- postgresql - 为什么 SELECT FOR UPDATE SKIP LOCKED 时 PostgreSQL 会抛出并发更新错误?
- memory-address - 字节到 32 位地址的转换