---
title: allowsPrinting
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgpdfdocument/allowsprinting
---

# allowsPrinting

Returns whether a PDF document allows printing.

## Declaration

```swift
var allowsPrinting: Bool { get }
```

## Discussion

Discussion If the document is encrypted and the current password doesn’t grant permission to perform printing, this returns false.

## See Also

### Working with an Encrypted PDF Document

- [isEncrypted](coregraphics/cgpdfdocument/isencrypted.md)
- [allowsCopying](coregraphics/cgpdfdocument/allowscopying.md)
- [isUnlocked](coregraphics/cgpdfdocument/isunlocked.md)
- [unlockWithPassword(_:)](coregraphics/cgpdfdocument/unlockwithpassword(_:).md)
