私はこのような私のアプリで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ファイルを書き込んだり保存したりする方法はありますか?