PDFDocumentObject
public class PDFDocumentObject : PDFAttributableObject, PDFTaggableObject, Hashable
All document objects are instances of PDFDocumentObject
to share common properties, e.g. attributes
.
-
List of
PDFObjectAttribute
to be applied during calculations and renderingDeclaration
Swift
public var attributes: [PDFObjectAttribute]
-
An integer that you can use to identify view objects in delegates.
Declaration
Swift
public var tag: Int
-
nodoc
Declaration
Swift
public init()
-
Appends the given
attribute
to the list ofattributes
.Attributes should be considered as independend from the implementation of the object. An example are clickable links, which can be applied to most objects and will be added as a interactive, rectangular area in the document, opening the configured link.
Note
Multiple instances of the same
PDFObjectAttribute
can be appended and might lead to unexpected results.Declaration
Swift
public func add(attribute: PDFObjectAttribute)
Parameters
attribute
PDFObjectAttribute
to append to list
-
nodoc
Declaration
Swift
public static func == (lhs: PDFDocumentObject, rhs: PDFDocumentObject) -> Bool
-
nodoc
Declaration
Swift
public func isEqual(to other: PDFDocumentObject) -> Bool
-
nodoc
Declaration
Swift
public func hash(into hasher: inout Hasher)