---
title: allowsPrinting
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfdocument/allowsprinting
---

# allowsPrinting

A Boolean value indicating whether the document allows printing.

## Declaration

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

## Discussion

Discussion The ability to print a PDF document is an attribute unrelated to whether the document is locked or unlocked. It depends on the PDF permissions set by the document’s author. This method only determines the desired permissions setting in the PDF document; it is up to the application to enforce (or ignore) the permissions. This method always returns true if the document is not encrypted. Note that in many cases an encrypted document may still be readable by all users due to the standard empty string password. For more details about user and owner passwords, see the Adobe PDF specification.

## See Also

### Getting Permissions

- [allowsCopying](pdfkit/pdfdocument/allowscopying.md)
- [allowsCommenting](pdfkit/pdfdocument/allowscommenting.md)
- [allowsContentAccessibility](pdfkit/pdfdocument/allowscontentaccessibility.md)
- [allowsDocumentAssembly](pdfkit/pdfdocument/allowsdocumentassembly.md)
- [allowsDocumentChanges](pdfkit/pdfdocument/allowsdocumentchanges.md)
- [allowsFormFieldEntry](pdfkit/pdfdocument/allowsformfieldentry.md)
