Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when usein NetPrinter found White lines printImageBase64 #103

Open
yaser-elbatal opened this issue May 25, 2023 · 11 comments
Open

when usein NetPrinter found White lines printImageBase64 #103

yaser-elbatal opened this issue May 25, 2023 · 11 comments

Comments

@yaser-elbatal
Copy link

bill

@yaser-elbatal yaser-elbatal changed the title White lines when trying to print images through image and text White lines when trying to print receipt through image and text May 25, 2023
@yaser-elbatal yaser-elbatal changed the title White lines when trying to print receipt through image and text White lines on printImageBase64 Jun 1, 2023
@CalmNguyen
Copy link

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?

@yaser-elbatal
Copy link
Author

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?

@CalmNguyen
Copy link

Hi I use it, it work fine all print image and print image base 64 in ios, just one white / image.

@yaser-elbatal
Copy link
Author

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 ?

@CalmNguyen
Copy link

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 || []

};

@CalmNguyen
Copy link

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

@CalmNguyen
Copy link

await BLEPrinter.printText(printTxt, {});
await BLEPrinter.printText(${CENTER}QR Code, {});

@yaser-elbatal
Copy link
Author

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

@CalmNguyen
Copy link

Sorry, I just BLE

@yaser-elbatal yaser-elbatal changed the title White lines on printImageBase64 White lines on printImageBase64 using NetPrinter Nov 7, 2023
@yaser-elbatal
Copy link
Author

@thiendangit

@yaser-elbatal
Copy link
Author

any update here

@yaser-elbatal yaser-elbatal changed the title White lines on printImageBase64 using NetPrinter White lines on image using printImageBase64 with NetPrinter Dec 4, 2023
@yaser-elbatal yaser-elbatal changed the title White lines on image using printImageBase64 with NetPrinter when usein NetPrinter found White lines printImageBase64 Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants