开发者

How do I convert a PDF stored as NSData to a CGPDFPageRef?

开发者 https://www.devze.com 2023-03-14 21:58 出处:网络
Please see 开发者_开发技巧the following code: NSString *pdfPath = [documentsDirectory stringByAppendingPathComponent:@\"test.pdf\"];

Please see 开发者_开发技巧the following code:

NSString *pdfPath = [documentsDirectory stringByAppendingPathComponent:@"test.pdf"]; 
NSData *myData = [NSData dataWithContentsOfFile:pdfPath];  

How do I convert myData to a CGPDFPageRef?


Why not use CGPDFDocumentCreateWithURL?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号