when usein NetPrinter found White lines printImageBase64
Opened this issue · 11 comments
sorry My English isn't good, i use Normal in IOS, i don't have White Lines in text and Image. But i can't use function printImageBase64 in IOS, this function isn't defind.
Do you use thí function?
ya i use it (printImageBase64)
Because I take a screenshot first and then print it as a image
@CalmNguyen
sorry My English isn't good, i use Normal in IOS, i don't have White Lines in text and Image. But i can't use function printImageBase64 in IOS, this function isn't defind. Do you use thí function?
Hi I use it, it work fine all print image and print image base 64 in ios, just one white / image.
Hi I use it, it work fine all print image and print image base 64 in ios, just one white / image.
let me show your code please ?
const captureView = async (listViewShotRef, length) => {
// console.log(PERMISSIONS.IOS.PHOTO_LIBRARY)
// return
const temp = []
for (let i = 0; i < length; i++) {
if (listViewShotRef[i].current) {
try {
const base64Data = await listViewShotRef[i].current.capture();
const fileData = await RNFS.readFile(base64Data, 'base64');
temp.push({ image: fileData })
} catch (error) {
console.error('Error capturing view:', error);
}
}
}
setListImageBase64(temp)
console.log(temp)
return temp || []
};
i think because your printer. If i print text, it would worked nice, just a white line/ image if i use printImageBase64. If using in android all good
await BLEPrinter.printText(printTxt, {});
await BLEPrinter.printText(${CENTER}QR Code
, {});
i think because your printer. If i print text, it would worked nice, just a white line/ image if i use printImageBase64. If using in android all good
android and ios the same issues
and i use NET printer not BLE
Sorry, I just BLE
any update here