Knowledge Base - Manage Text Annotations

Get Text Annotation

To get text annotation details in RadaeePDF Xamarin you could use getTextAnnotationDetails method that return a JSON string

Here's a JSON output example:

[{
"bottom" : 353.5,
"subject" : "subject",
"text" : "text",
"left" : 146.5,
"right" : 166.5,
"top" : 333.5,
"index" : 1
}]

iOS:

ApiDefinition.cs:

// -(NSString *)getTextAnnotationDetails:(int)pageNum;
[Export("getTextAnnotationDetails:")]
string GetTextAnnotationDetails(int pageNum);

ViewController.cs:

Console.WriteLine("text annot detail: {0}", plugin.GetTextAnnotationDetails(page));

Android:

MainActivity.cs:

Console.WriteLine("text annot detail: {0}", plugin.GetTextAnnotationDetails(page));

 

Add Text Annotation

To add text annotation you could use addTextAnnotation

iOS:

ApiDefinition.cs:

// -(void)addTextAnnotation:(int)pageNum :(float)x :(float)y :(NSString *)text :(NSString *)subject;
[Export("addTextAnnotation:::::")]
void AddTextAnnotation(int pageNum, float x, float y, string text, string subject);

ViewController.cs:

plugin.AddTextAnnotation(page, x, y, "text", "subject");

Android:

MainActivity.cs:

mPdfManager.AddTextAnnotation(page, x, y, "text", "subject");

Applies To

RadaeePDF SDK for Xamarin

Details

Created : 2020-09-03 10:40:31, Last Modified : 2020-09-04 14:57:36

Order history

Login to handle your order history.