在我的iOS应用程序中,我需要从我的webview内容创建一个pdf文档。我看过这些帖子:Creating PDF file from UIWebView和https://coderchrismills.wordpress.com/2011/06/25/making-a-pdf-from-a-uiwebview/iOS从UIWebview内容创建pdf
我不知道是否有一个更简单的方法来做到这一点。例如对于我的Mac项目,我使用这个:
NSData *pdf = [[[[webView mainFrame] frameView] documentView] dataWithPDFInsideRect:[[[webView mainFrame] frameView] documentView].frame];
PDFDocument *doc = [[PDFDocument alloc] initWithData:pdf];
有什么简单的方法可以做到这一点在iOS?
哪一个是最好的选择,从webview内容获得最好的质量PDF文档?
引用此问题:http://stackoverflow.com/questions/15813005/creating-pdf-file-from-uiwebview – Bhushan