【发布时间】:2014-11-18 17:30:41
【问题描述】:
我在尝试使用 xcode 和 ePos 打印一行文本后跟一个图像时遇到问题。
仅打印文本或图像效果很好。但是将它们放在一张纸上是行不通的。
它只打印第一个并停止。无论是文字还是图片。
下面是我的代码。
请帮忙。
我的函数包含....
PrinterU *pj = [[PrinterU alloc] init];
EposB *builder = [pj getNewEposB];
EposP *printer = [pj getNewEposP];
[pj setPrintStyle:PRINTSTYLE_BODY2 eposBuilder:builder];
[pj loadTextLine:@"print to tm-p60II \n" eposBuilder:builder];
[pj loadTextLine:@"DONE BY tester" eposBuilder:builder];
NSLog(@"%@", signature);
UIImage*image = [UIImage imageWithData:signature];
[pj addImage:image X:0 Y:0 Width:300 Height:300 Color:(EPOS_OC_PARAM_DEFAULT) eposBuilder:builder];
[pj print:builder eposPrint:printer ];
[pj closePrinterConnection];
【问题讨论】:
-
没有一个回复...伤心
标签: ios xcode image text printing