在我的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