CPDFMarkupAnnotation Class Reference
| Inherits from | CPDFAnnotation : NSObject |
|---|---|
| Declared in | CPDFMarkupAnnotation.h |
Overview
A CPDFMarkupAnnotation object appears as highlighting, underlining, strikethrough, or a squiggly style applied to the text of a document.
– initWithPage:document:markupType:
Initializes CPDFMarkupAnnotation with page and document.
- (nullable instancetype)initWithPage:(CPDFPage *)page document:(CPDFDocument *)document markupType:(CPDFMarkupType)markupTypeParameters
page |
The page on which the annotation will reside. |
|---|---|
document |
The document that owns the page. |
markupType |
The markup style (highlight, strikeout, underline, squiggly). |
Discussion
Initializes CPDFMarkupAnnotation with page and document.
Creates the engine object and binds it to the page. Call @c [CPDFPage updateAndAddAnnotation:] to finish registration.
Declared In
CPDFMarkupAnnotation.h
quadrilateralPoints
Method to get / set the array of quadrilateral points defining the bounds of the markup.
@property (nonatomic, strong) NSArray *quadrilateralPointsDiscussion
Method to get / set the array of quadrilateral points defining the bounds of the markup.
Array of (n * 4) NSPoints defining n quadrilaterals in page space where n is the number of quad points. The points for each quad are ordered in a ‘Z’ pattern. That is, the first point should represent the upper left point representing the start of the marked-up text, the next point will be the upper right, the third point will represent the lower left of the text and the last point the lower right. Page space is a coordinate system with the origin at the lower-left corner of the current page.
Declared In
CPDFMarkupAnnotation.h
– markupType
Gets the markup style.
- (CPDFMarkupType)markupTypeDiscussion
Gets the markup style.
See Also
Declared In
CPDFMarkupAnnotation.h