【问题标题】:Xcode IOS Printing ePos SDK Image and Text TogetherXcode IOS 同时打印 ePos SDK 图像和文本
【发布时间】: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


【解决方案1】:

原来打印机 sdk 无法拉伸图像。通过决议修复它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-07-07
    • 2015-08-09
    • 2012-07-19
    • 1970-01-01
    • 2015-04-04
    • 2014-05-11
    • 2023-03-09
    相关资源
    最近更新 更多