PSPDFPageInfo


@interface PSPDFPageInfo : NSObject <NSCopying, NSSecureCoding>

Represents PDF page data. Managed within PSPDFDocumentProvider.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFPageInfo : NSObject <NSCopying, NSSecureCoding>
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFPageInfo : NSObject <NSCopying, NSSecureCoding>
  • Referenced page, relative to the document provider.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger pageIndex;

    Swift

    var pageIndex: UInt { get }
  • Referenced document provider.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        PSPDFDocumentProvider *_Nullable documentProvider;

    Swift

    weak var documentProvider: PSPDFDocumentProvider? { get }
  • Rect of current page.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect rect;

    Swift

    var rect: CGRect { get }
  • Saved page rotation of current page. Value between 0 and 270 in 90 degree steps.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger rotation;

    Swift

    var rotation: UInt { get }
  • Defines additional page actions. Key is PSPDFPageTriggerEvent, value a PSPDFAction instance.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable)
        NSDictionary<NSNumber *, PSPDFAction *> *additionalActions;

    Swift

    var additionalActions: [NSNumber : PSPDFAction]? { get }
  • Returns corrected, rotated bounds of rect. Calculated.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect rotatedRect;

    Swift

    var rotatedRect: CGRect { get }
  • Page transform matrix. Calculated.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGAffineTransform rotationTransform;

    Swift

    var rotationTransform: CGAffineTransform { get }
  • Can be used to selectively disable annotation creation on the current page. This feature is a proprietary PSPDFKit extension. To disable annotation creation add a boolean key (PSPDF:AllowAnnotationCreation) to the PDF page dictionary and set it to false.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowAnnotationCreation;

    Swift

    var allowAnnotationCreation: Bool { get }
  • Returns the media box that is set in the PDF. This is in PDF coordinates, straight from the PDF. @Note: This might return CGRectNull if there’s no MediaBox set.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect mediaBox;

    Swift

    var mediaBox: CGRect { get }
  • Returns the crop box that is set in the PDF. This is in PDF coordinates, straight from the PDF. @Note: This might return CGRectNull if there’s no CropBox set.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGRect cropBox;

    Swift

    var cropBox: CGRect { get }