【发布时间】:2011-10-27 12:03:42
【问题描述】:
这是我要打印的字符串:
<p><img src="/Users/Max/Library/Application Support/iPhone Simulator/4.3/Applications/5FCCB847-52D9-48F4-A900-459C6A77A5A6/Documents/18/logo18_lg.jpg" alt="" height="72" /></p>
这是我在应用程序中生成的较大 HTML 页面的一小部分,我将其传递给 print,如下所示:
UIMarkupTextPrintFormatter *html = [[UIMarkupTextPrintFormatter alloc] initWithMarkupText:printContents];
其中打印内容包含我需要打印的所有 html,包括上面的图像 sn-p。除了不打印的图像外,打印效果很好。
【问题讨论】:
标签: iphone objective-c ipad