Instance Property

allowsPrinting

Returns whether a PDF document allows printing.

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.

See Also

Working with an Encrypted PDF Document

var isEncrypted: Bool

Returns whether the specified PDF file is encrypted.

var allowsCopying: Bool

Returns whether the specified PDF document allows copying.

var isUnlocked: Bool

Returns whether the specified PDF document is currently unlocked.

func unlockWithPassword(UnsafePointer<Int8>) -> Bool

Unlocks an encrypted PDF document when a valid password is supplied.