<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPreferences/shouldPrintBackgrounds",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebPreferences(py)shouldPrintBackgrounds"
  },
  "title" : "shouldPrintBackgrounds"
}
-->

# shouldPrintBackgrounds

A Boolean that indicates whether or not the web view should include backgrounds when printing.

```
var shouldPrintBackgrounds: Bool { get set }
```

## Discussion

Set to <doc://com.apple.documentation/documentation/Swift/true> if the web view should print backgrounds, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)