How to print headers and footers when printing WKWebView?
I am able to print the WKWebView, I did set the NSPrintHeaderAndFooter, but it is still not printing the pageHeader and pageFooter.
WebView has a delegate that allows customizing header and footer. Is there an equivalent in WKWebView?
If Safari is using WKWebView, this means that there is a way to print the header and footer, because Safari allows printing these elements.
I am able to print the WKWebView, I did set the NSPrintHeaderAndFooter, but it is still not printing the pageHeader and pageFooter.
WebView has a delegate that allows customizing header and footer. Is there an equivalent in WKWebView?
If Safari is using WKWebView, this means that there is a way to print the header and footer, because Safari allows printing these elements.
-
—
MMDsoftware
Add a CommentAny luck with this? I am having the same issue when I use
[self.webView printOperationWithPrintInfo:printInfo]. When I use[NSPrintOperation printOperationWithView:self.webView printInfo:printInfo]I get the headers, but I don't get the actual web content.