【发布时间】:2012-11-14 16:38:36
【问题描述】:
我在我的应用程序中得到一个 PDF 文件,如下所示:
NSURL* pdfURL = [NSURL URLWithString:urlStr];
CGPDFDocumentRef PDFDocument = CGPDFDocumentCreateWithURL((__bridge CFURLRef)pdfURL);
CGPDFPageRef PDFPage = CGPDFDocumentGetPage(PDFDocument, 1);
我知道对于图片,我们可以使用这种方法将其保存在 iPhone 中:
[UIImagePNGRepresentation(image) writeToFile:uniquePath atomically:YES];
但是有没有办法以编程方式在 iPhone 中写入/保存 PDF 文件?
【问题讨论】:
标签: ios uiimageview core-animation catiledlayer