



Collapse All
Syntax| LONG PDFPAGE_SetAnnotation ( DOUBLE left, DOUBLE top, DOUBLE right, DOUBLE bottom, BSTR title, BSTR contents, OLE_COLOR color, VARIANT_BOOL print, VARIANT_BOOL noZoom, VARIANT_BOOL noRotate, VARIANT_BOOL invisible, VARIANT_BOOL hidden, VARIANT_BOOL noView, VARIANT_BOOL readOnly, VARIANT_BOOL opened, TxFontCharset fontCharset ) |
RemarksThe return value is an annotation/control identifier in document's annotations collection and can be used in AddControlToAction, CurrentAnnotationIndex.
Equivalent in new interface: IPDFDocument4::AddTextAnnotation, IPDFDocument4::AddUnicodeTextAnnotation.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, 'Title',
'Here goes annotation contents...', 255, false, false, false,
false, false, false, true, true, charsetANSI_CHARSET);
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
"Here goes annotation contents...", 255, FALSE, FALSE, FALSE,
FALSE, FALSE, FALSE, TRUE, TRUE, charsetANSI_CHARSET);
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetAnnotation(100, 200, 110, 210, "Title",
"Here goes annotation contents...", 255, false, false, false,
false, false, false, true, true, TxFontCharset.charsetANSI_CHARSET);
PDF.EndDoc();
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_SetAnnotation 100, 200, 110, 210, "Title",_
"Here goes annotation contents...", 255, false, false, false,
false, false, false, true, true, 0
PDF.EndDoc
See Also