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

in IOS image is not print, it is print 10% image and then disconnect #6

Closed
vitulgoyani opened this issue Feb 10, 2020 · 9 comments
Closed

Comments

@vitulgoyani
Copy link

No description provided.

@andrey-ushakov
Copy link
Owner

Hi, could you provide your exact code and the image, please?

@FightForFreedom-LK
Copy link

same issue here in IOS when printing QRCode image, but works fine in android,here is the code

ByteData data=await QrPainter(
gapless: true,
data: url,
version: QrVersions.auto,
).toImageData(150);
final Uint8List bytes = data.buffer.asUint8List();
final Image image = decodeImage(bytes);

ticket.image(image);

@andrey-ushakov
Copy link
Owner

andrey-ushakov commented Mar 16, 2020

Hum... Same code / same printer works differently on Android and iOS?

@FightForFreedom-LK
Copy link

@andrey-ushakov yes.

@FightForFreedom-LK
Copy link

the printer is Xprinter (XP-58IIH) ,
by the way, i'm using esc_pos_bluetooth lib

@andrey-ushakov
Copy link
Owner

andrey-ushakov commented Mar 16, 2020

Hi @FightForFreedom-LK,

Xprinter XP-58IIH is a Bluetooth printer? Here in the comments it says it has no Bluetooth...

BTW I have Xprinter XP-N160I (WiFi, not Bluetooth) and it works just fine on Android and iOS.
Could you please provide your full code, please? I will test it on my Xprinter / iOS.

Thanks!

@FightForFreedom-LK
Copy link

Hi @andrey-ushakov

i just download your esc_pos_bluetooth project and modifed below:
and my printer model is attached ,it supports USB and Bluetooth.

`
static Future testPrinter2_1() async {
final Ticket ticket =Ticket(PaperSize.mm58);
ticket.text('Test 1. Images',styles: PosStyles(align: PosAlign.center), linesAfter: 2);

String url="http://receipt.testandtest.com/testreceipt/api/orderreceipt?dir=15&receiptID=200314100361747&source=2&sign=NGQ3MmQ3MfddhYTZkN2Q3NmMyMWQ2OTM5NWIzMWNhZDQ3YzZiODFmMzY3Yzk1NWVjN2M0ZmM5YmM1YWE1YmZlNQ=="
ByteData data=await QrPainter(
  gapless: true,
  data: url,
  version: QrVersions.auto,
).toImageData(150);
final Uint8List bytes = data.buffer.asUint8List();
final Image image = decodeImage(bytes);

ticket.text('Command: ESC *');
ticket.image(image);

ticket.feed(5);
return ticket;

}
`
912ec370ecf18edfeed91276c93c5547

@andrey-ushakov
Copy link
Owner

related issue: #5

@andrey-ushakov andrey-ushakov transferred this issue from andrey-ushakov/esc_pos_printer Mar 20, 2020
@andrey-ushakov
Copy link
Owner

Closed as a duplicate of #5

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

3 participants