



Collapse All
Syntax| LONG AddUnicodeTextAnnotation ( FLOAT x, FLOAT y, BSTR title, BSTR contents ) |
RemarksThis method inserts a colored text annotation into the current page in the area bounded by the specified coordinates. The strings title and content set the title and content of the annotation.
The return value is an annotation/control identifier in the document's annotations collection and can be used in AddControlToAction and CurrentAnnotation.
Example{ PDF object is supposed to be created }
PDF.AddUnicodeTextAnnotation(10, 10, 'Title', 'Some text goes here...');
PDF.AnnotHidden := false;
PDF.TextAnnotIcon := aiKey;
PDF.AnnotInvisible := false;
PDF.AnnotLocked := true;
PDF.AnnotLockedContents := true;
PDF.AnnotNoRotate := true;
PDF.AnnotNoView := false;
PDF.AnnotNoZoom := true;
PDF.AnnotPrint := true;
PDF.AnnotReadOnly := true;
PDF.AnnotToggleNoView := false;
PDF.IsOpenedTextAnnot := true;
PDF.SaveToFile('test.pdf', true);
// PDF object is supposed to be created
PDF->AddUnicodeTextAnnotation(10, 10, "Title", "Some text goes here...");
PDF->AnnotHidden = false;
PDF->TextAnnotIcon = aiKey;
PDF->AnnotInvisible = false;
PDF->AnnotLocked = true;
PDF->AnnotLockedContents = true;
PDF->AnnotNoRotate = true;
PDF->AnnotNoView = false;
PDF->AnnotNoZoom = true;
PDF->AnnotPrint = true;
PDF->AnnotReadOnly = true;
PDF->AnnotToggleNoView = false;
PDF->.IsOpenedTextAnnot = true;
PDF->SaveToFile("test.pdf", true);
// PDF object is supposed to be created
PDF.AddUnicodeTextAnnotation(10, 10, "Title", "Some text goes here...");
PDF.AnnotHidden = false;
PDF.TextAnnotIcon = TextAnnotationIcon.aiKey;
PDF.AnnotInvisible = false;
PDF.AnnotLocked = true;
PDF.AnnotLockedContents = true;
PDF.AnnotNoRotate = true;
PDF.AnnotNoView = false;
PDF.AnnotNoZoom = true;
PDF.AnnotPrint = true;
PDF.AnnotReadOnly = true;
PDF.AnnotToggleNoView = false;
PDF.IsOpenedTextAnnot = true;
PDF.SaveToFile("test.pdf", true);
' PDF object is supposed to be created PDF.AddUnicodeTextAnnotation 10, 10, "Title", "Some text goes here..." PDF.AnnotHidden = false PDF.TextAnnotIcon = 2 'TextAnnotationIcon.aiKey PDF.AnnotInvisible = false PDF.AnnotLocked = true PDF.AnnotLockedContents = true PDF.AnnotNoRotate = true PDF.AnnotNoView = false PDF.AnnotNoZoom = true PDF.AnnotPrint = true PDF.AnnotReadOnly = true PDF.AnnotToggleNoView = false PDF.IsOpenedTextAnnot = true PDF.SaveToFile "test.pdf", true
See Also