PTPageModel

@protocol PTPageModel <NSObject>

A protocol that defines the interface of a page model object.

  • The page number of the modelled PDF page.

    Declaration

    Objective-C

    @required
    @property (nonatomic, assign, unsafe_unretained, readonly) int pageNumber;

    Swift

    var pageNumber: Int32 { get }
  • The document model object that contains this page.

    Declaration

    Objective-C

    @required
    @property (nonatomic, weak, readonly, nullable) id<PTDocumentModel> document;

    Swift

    weak var document: (any PTDocumentModel)? { get }
  • The annotations on this page.

    Declaration

    Objective-C

    @required
    @property (nonatomic, copy, readonly, nullable)
        NSSet<id<PTAnnotationModel>> *annotations;

    Swift

    var annotations: Set<AnyHashable>? { get }