admin管理员组文章数量:1415491
Has anyone tried using react-native-thermal-receipt-printer-image-qr? I have a question. When printing from an Android phone, everything works fine, but on an iPhone, the printing is very slow, and the content is shifted to one side, causing part of the receipt to be cut off.
I would really appreciate any help. Thank you very much!" enter image description here
"I have tried configuring it separately for each operating system, but it didn't work."
const handlePrintBillWithImage = async () => {
console.log('Printing image:', invoiceImage?.uri);
const base64Image = await RNFS.readFile(invoiceImage.uri, 'base64');
const Printer = printerList[selectedValue];
Printer.printImageBase64(
base64Image,
{
imageWidth: 384,
imageHeight: invoiceImage.height,
paddingX:0,
printerWidthType:"58mm",
},
);
};
本文标签:
版权声明:本文标题:android - On an iPhone, the printing is very slow, and the content is shifted to one side, causing part of the receipt to be cut 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745170344a2645937.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论