No Method of Printing WKWebView

Number:rdar://23649229 Date Originated:23-Nov-2015 04:46 PM
Status:Closed (Duplicate) Resolved:No
Product:OS X SDK Product Version:10.11.1 (15B42)
Classification:UI/Usability Reproducible:Always
Unlike iOS, there is no method of printing a WKWebview on OS X. The `print:` method prints, previews and saves (as PDF) blank pages; and `NSPrintOperation` does not correctly print the contents of the view.

On iOS, WKWebView has a viewPrintFormatter property that can be used, which does not exist on OS X.

Steps to Reproduce:
1. Create a `WKWebview` e.g. `WKWebView *webView = [[WKWebView alloc] initWithFrame:.. configuration:...];` etc.

2. Call the `print:` method on the `webView` object, passing either `nil` or `self` for the argument.

Expected Results:
The print dialog appears with the pages showing the contents of the WKWebView instance. Printed pages have the contents showing correctly.

Actual Results:
The print dialog appears with blank pages. Printed pages are blank.

Xcode Version 7.1.1 (7B1005), OS X 10.11.1 (15B42)


Apple Developer Relations – Duplicate of 36557179 (Open)

Engineering has determined that your bug report is a duplicate of another issue and will be closed. The open or closed status of the original report your bug was duplicated to appears in a text box within the bug detail section of the bug reporter user interface. For security and privacy reasons, we don't provide access to the original bug yours was duped to. If you have any questions or concerns, please update your report directly at this link:

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!