Hello,
Since BigSur has been released, I'm trying to print content of a WKWebView using the - printOperationWithPrintInfo: method (The same way as WeFrame with previous WebView). But the result generated is always blank pages.
I tried a workaround by generating a PDF from the webView with - createPDFWithConfiguration:completionHandler: then printing it but the whole page will always fit in one paper page.
Is there a way to cut the PDF in multiple page as would Safari or previous webView ?
And is it a known bug that WKWebView - printOperationWithPrintInfo: generates blank pages ?
We're working on updating our application to use WKWebView instead of deprecated WebView and this is blocking us.
Thanks,
Cyril
Since BigSur has been released, I'm trying to print content of a WKWebView using the - printOperationWithPrintInfo: method (The same way as WeFrame with previous WebView). But the result generated is always blank pages.
I tried a workaround by generating a PDF from the webView with - createPDFWithConfiguration:completionHandler: then printing it but the whole page will always fit in one paper page.
Is there a way to cut the PDF in multiple page as would Safari or previous webView ?
And is it a known bug that WKWebView - printOperationWithPrintInfo: generates blank pages ?
We're working on updating our application to use WKWebView instead of deprecated WebView and this is blocking us.
Thanks,
Cyril