GdViewer.AddTextAnnotationInteractive(message, textColor, "Arial", System.Drawing.FontStyle.Regular, 12, true, backgroundColor, backgroundColor, 1, 0);
I would like to read the text that is inside the textannotation and save it somewhere else for another purposes.
What I tried?
Code: Select all
AnnotationManager oAnnotationManager = new AnnotationManager();
var result = oAnnotationManager.InitFromGdPicturePDF(oGdPicturePDF);
int annotationIdx = GdViewer.GetSelectedAnnotationIdx(); //Here the selected annotation is AnnotationText
if (annotationIdx >= 0)
{
var selectedAnnotation = oAnnotationManager.GetAnnotationFromIdx(SelectedAnnotIdx);
selectedAnnotation.Height = height + (height / 10);
//from here I don't know what to do. I can change the height but I would like to be able to read the text inside
}
I know about Annotation Editor. But could not find how to use it. Any help?