iphone - Screenshot Of webView with full image quality -


I am trying to take a screenshot of a webview and want to convert it to PDF. I have used this method:

I mean code in this project. It works fine for the iPad but it does not include the full width for the iPhone. I've used the web-view -sizeThatFits: but it provides unimaginable images for larger HTML pages. I searched a lot but I knew that there was no iPhone in Android. Thank you. Thank you.Thank you!

Before you render it, you can capture the entire page by changing the webview frame. .

  NSMutableData * pdfData = [NSMutableData data]; See CGRT content = CGRCtech (0, Web ViIICIILIILICICXWidth, WebviewIcrollVententesHigh); [WebView Set Frame: contentRect]; UIGraphicsbiginPDFContactTodata (PDF data, content, void); UIGraphicsBeginPDFPage (); CGContextRef Reference = UIGraphicsGetCurrentContext (); [WebView.layer renderInContext: reference]; UIGraphicsEndPDFContext ();    

Comments