Xcode IOS同时打印ePos SDK图像和文本
当我试图打印一行文本,然后是一个带有xcode和ePos的图像时,我遇到了一个问题 只打印文本或图像效果很好。但是把它们放在一张纸上是行不通的 它只打印出第一个并停止的内容。文本是第一个还是图像 下面是我的代码 请帮忙 我的函数包含Xcode IOS同时打印ePos SDK图像和文本,ios,xcode,image,text,printing,Ios,Xcode,Image,Text,Printing,当我试图打印一行文本,然后是一个带有xcode和ePos的图像时,我遇到了一个问题 只打印文本或图像效果很好。但是把它们放在一张纸上是行不通的 它只打印出第一个并停止的内容。文本是第一个还是图像 下面是我的代码 请帮忙 我的函数包含 PrinterU *pj = [[PrinterU alloc] init]; EposB *builder = [pj getNewEposB]; EposP *printer = [pj getNewEposP];
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];
结果表明打印机sdk无法拉伸图像。通过通过决议解决了这个问题。没有一个回复。。。悲哀的