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)pageIndex
Parameters
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)zoom
Parameters
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 *document
Discussion
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 pageIndex
Discussion
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 point
Discussion
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 zoom
Discussion
Returns the scale factor the PDF viewer should assume for this destination.
Declared In
CPDFDestination.h