Returns whether a PDF document allows printing.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
var allowsPrinting: Bool { get }
Parameters
document
A PDF document.
Return Value
A Boolean that, if true
, indicates that the document allows printing. If the value is false
, the document does not allow printing.
Discussion
If the document is encrypted and the current password doesn't grant permission to perform printing, this returns false
.