No Method of Printing WKWebView
| Originator: | sjachec1 | ||
| Number: | rdar://23649229 | Date Originated: | 23-Nov-2015 04:46 PM |
| Status: | Open | Resolved: | No |
| Product: | OS X SDK | Product Version: | 10.11.1 (15B42) |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: 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. Version: Xcode Version 7.1.1 (7B1005), OS X 10.11.1 (15B42)
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!