printing WKWebView on BigSur

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
Feedback number: FB8918124
Cyril,

if you haven't figured that out yet, take a look at www. thetopsites .net / article/ 53972105. shtml

Basically -printOperationMOdalForWindow... works just fine.

Have a good day!
printing WKWebView on BigSur
 
 
Q