PSPDFPage
@interface PSPDFPage : NSObject
The PDF Page represents a page of a document. The document is strongly retained.
Responsibilities:
- Make working with annotations simpler.
-
The associated document. Strongly held.
Declaration
Objective-C
@property (readonly, nonatomic) PSPDFDocument *_Nonnull document;
Swift
var document: PSPDFDocument { get }
-
The associated document provider. Fetched via
document
.Declaration
Objective-C
@property (readonly, nonatomic) PSPDFDocumentProvider *_Nonnull documentProvider;
Swift
var documentProvider: PSPDFDocumentProvider { get }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFPageInfo *pageInfo
Swift
var pageInfo: PSPDFPageInfo { get }
-
Page index, absolute based on the document.
Declaration
Objective-C
@property (readonly, nonatomic) PSPDFPageIndex pageIndex;
Swift
var pageIndex: PageIndex { get }
-
Creates a stamp annotation from image.
Declaration
Objective-C
- (nonnull PSPDFStampAnnotation *)createStampAnnotationWithImage: (nonnull UIImage *)image;
Swift
func createStampAnnotation(with image: UIImage) -> PSPDFStampAnnotation
-
Creates a free text annotation from content.
Declaration
Objective-C
- (nonnull PSPDFFreeTextAnnotation *)createFreeTextAnnotationWithContents: (nonnull NSString *)contents;
Swift
func createFreeTextAnnotation(withContents contents: String) -> PSPDFFreeTextAnnotation