PTCaret
@interface PTCaret : PTMarkup
A Caret annotation (PDF 1.5) is a visual symbol that indicates the presence of text edits.
-
Creates an Caret annotation and initializes it using given Cos/SDF object.
Note
The constructor does not copy any data, but is instead the logical equivalent of a type cast.Parameters
dThe Cos/SDF object to initialze the annotation with.
-
Undocumented
Declaration
Objective-C
- (instancetype)init;Swift
init!() -
Creates a new Caret annotation in the specified document.
Declaration
Parameters
docA document to which the Caret annotation is added.
posA rectangle specifying the Caret annotation’s bounds in default user space units.
Return Value
A newly created blank Caret annotation.
-
Creates a new Caret annotation, in the specified document, specifying a set of four numbers that shall describe the numerical differences between two rectangles: the Rect entry of the annotation and the actual boundaries of the underlying Caret.
Declaration
Parameters
docA document to which the Caret annotation is added.
posA rectangle specifying the Caret annotation’s bounds in default user space units.
paddingA set of four numbers(represented as a Rect object)specifying the numerical differences between two rectangles: the Rect entry of the annotation and the actual boundaries of the underlying Caret.
Return Value
A newly created Caret annotation with rectangle difference specified.
-
Returns the paragraph symbol associated with the caret.
Declaration
Objective-C
- (NSString *)GetSymbol;Swift
func getSymbol() -> String!Return Value
The name of the symbol. This can be either “P” (Use a new paragraph symbol) or “None” (Don’t use any symbol). Default value: None.
-
Sets the caret symbol.
Declaration
Objective-C
- (void)SetSymbol:(NSString *)symbol;Swift
func setSymbol(_ symbol: String!)Parameters
symbolThe name of the symbol. This can be either “P” (Use a new paragraph symbol) or “None” (Don’t use any symbol). Default value: None.
PTCaret Class Reference