It's possible to convert each PDF page to image using even UIKit only. Sure, I saw similar fragments.
But, first of all, it's necessary to understand, what do you actually need.
If a webview does not have a scrollbar and you need a simple copy of webview's visible context, a solution is enough simple and requires less than 10 statements.
For example, add to the bottom
#If OBJC
#import <Webkit/Webkit.h>
- (UIImage *) createImage: (WKWebView *) wkWebView
{
UIGraphicsBeginImageContext (CGSizeMake (wkWebView.layer.frame.size.width, wkWebView.layer.frame.size.height));
[wkWebView.layer renderInContext: UIGraphicsGetCurrentContext ()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext ();
UIGraphicsEndImageContext ();
return image;
}
#End If
In WebView1_PageFinished event
Dim no As NativeObject = Me
Dim bitmap As Bitmap = no.RunMethod ("createImage:", Array (WebView1))
You can show bitmap in imageview or to save it
Dim outputStream As OutputStream = File.OpenOutput (File.DirDocuments, "tmp.jpg", False)
bitmap.WriteToStream (outputStream, 100, "JPEG")
outputStream.Close
But if the size of webview is not enough to show a whole document, I think, PDF format is better.