PDFInfo

public class PDFInfo: PDFJSONSerializable

Information saved in PDF file metadata.

  • Title of document.

    Declaration

    Swift

    public var title = "Title"
  • Author of document.

    Declaration

    Swift

    public var author = "Author"
  • Subject of document.

    Declaration

    Swift

    public var subject = "Subject"
  • Keywords of document.

    Declaration

    Swift

    public var keywords = ["tppdf", "pdf", "generator"]
  • The owner password of the PDF document. If this password is set the document is encrypted; otherwise, the document will not be encrypted.

    Declaration

    Swift

    public var ownerPassword: String?
  • The user password of the PDF document. If the document is encrypted, then this value will be the user password for the document.

    Declaration

    Swift

    public var userPassword: String?
  • Whether the document allows printing when unlocked with the user password.

    Declaration

    Swift

    public var allowsPrinting = true
  • Whether the document allows copying when unlocked with the user password.

    Declaration

    Swift

    public var allowsCopying = true
  • Initializer

    Declaration

    Swift

    public init()
  • Compares two instances of PDFInfo for equality

    Declaration

    Swift

    public static func == (lhs: PDFInfo, rhs: PDFInfo) -> Bool

    Parameters

    lhs

    Left side object

    rhs

    Right side object

    Return Value

    true if all values of lhs equals rhs