CPDFDestination Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | CPDFDestination.h |
Overview
A CPDFDestination object describes a point on a PDF page.
In typical usage, you do not initialize CPDFDestination objects but rather get them as either attributes of CPDFLinkAnnotation or CPDFOutline objects, or in response to the CPDFView method currentDestination.
– initWithDocument:pageIndex:
Initializes the destination.
- (instancetype)initWithDocument:(CPDFDocument *)document pageIndex:(NSInteger)pageIndexParameters
document |
The document with which the destination is associated. |
|---|---|
pageIndex |
The page index of the destination. |
Discussion
Initializes the destination.
Specify point in page space. Typically, there’s no need to initialize destinations. Instead, you get them from CPDFLinkAnnotation, CPDFOutline, or CPDFView objects.
Declared In
CPDFDestination.h
– initWithDocument:pageIndex:atPoint:zoom:
Initializes the destination.
- (instancetype)initWithDocument:(CPDFDocument *)document pageIndex:(NSInteger)pageIndex atPoint:(CGPoint)point zoom:(CGFloat)zoomParameters
document |
The document with which the destination is associated. |
|---|---|
pageIndex |
The page index of the destination. |
point |
The point of the destination, in page space. |
zoom |
The zoom of the destination. |
Discussion
Initializes the destination.
Specify point in page space. Typically, there’s no need to initialize destinations. Instead, you get them from CPDFLinkAnnotation, CPDFOutline, or CPDFView objects. Page space is a coordinate system with the origin at the lower-left corner of the current page.
Declared In
CPDFDestination.h
document
Returns the document with which the destination is associated.
@property (nonatomic, readonly) CPDFDocument *documentDiscussion
Returns the document with which the destination is associated.
Declared In
CPDFDestination.h
pageIndex
Returns the page index that the destination refers to.
@property (nonatomic, readonly) NSInteger pageIndexDiscussion
Returns the page index that the destination refers to.
Declared In
CPDFDestination.h
point
Returns the point, in page space, that the destination refers to.
@property (nonatomic, readonly) CGPoint pointDiscussion
Returns the point, in page space, that the destination refers to.
Page space is a coordinate system with the origin at the lower-left corner of the current page.
Declared In
CPDFDestination.h
zoom
Returns the scale factor the PDF viewer should assume for this destination.
@property (nonatomic, readonly) CGFloat zoomDiscussion
Returns the scale factor the PDF viewer should assume for this destination.
Declared In
CPDFDestination.h