当我尝试用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];发布于 2015-01-20 00:40:07
原来打印机sdk不能拉伸图像。通过传递解决方案修复了该问题。
https://stackoverflow.com/questions/27000377
复制相似问题