When using the FreeTextAnnotation object, the Intent property is not always populated as defined in the documentation.
For example, in the attached file named “Text box and Callout.pdf,” if I look at the Intent property I see that the Annotation that is a callout (Annotations[2]) is labeled “FreeTextCallout.” However the first Annotation has an intent labeled as "Undefined."
In the second attached file “Text Comment.pdf,” the only annotation which is a Text Comment (sometimes called Typewritten text) is also undefined.
Sample Code:
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(openFileDialog1.FileName);
Aspose.Pdf.Page pg = doc.Pages[1];
Aspose.Pdf.InteractiveFeatures.Annotations.FreeTextAnnotation ftAnnot= (Aspose.Pdf.InteractiveFeatures.Annotations.FreeTextAnnotation)pg.Annotations[1].Intent;
System.Diagnostics.Debug.Write(ft.Intent);