AddNoteAnnotationA
Annotations and hotspot links
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddNoteAnnotation and string arguments are interpreted using the current SetAnsiMode code page
Adds a note annotation to the selected page. The values of the color parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the color.
Because this writer creates a linked /Popup annotation and PDF 1.3 annotation flags, PDF 1.2 documents are automatically raised to PDF 1.3 before saving.
Syntax
Delphi
Function DLAddNoteAnnotationA(InstanceID: Integer; Left, Top: Double; AnnotType: Integer; PopupLeft, PopupTop, PopupWidth, PopupHeight: Double; Title, Contents: PAnsiChar; Red, Green, Blue: Double; Open: Integer): Integer;
DLL
int DLAddNoteAnnotationA(int InstanceID, double Left, double Top, int AnnotType, double PopupLeft, double PopupTop, double PopupWidth, double PopupHeight, const char * Title, const char * Contents, double Red, double Green, double Blue, int Open);
Parameters
The horizontal co-ordinate of the anchor for the annotation
Left
The vertical co-ordinate of the anchor for the annotation
Top
The annotation type:
0 = Note
1 = Comment
2 = Help
3 = Insert
4 = Key
5 = New paragraph
6 = Paragraph
Add 100 to any of the above values to suppress the date shown in the popup annotation's title
AnnotType
PopupLeft
The horizontal co-ordinate of the left edge of the popup window
PopupTop
The vertical co-ordinate of the left edge of the popup window
PopupWidth
The width of the popup window
PopupHeight
The height of the popup window
Title
The title of the annotation
Contents
The body of the popup annotation
Red
The red component of the color of the annotation
Green
The green component of the color of the annotation
Blue
The blue component of the color of the annotation
Open
Specifies whether to show the annotation when the document is opened:
0 = hide
1 = show
double PopupWidth, double PopupHeight, wchar_t * Title, wchar_t * Contents, double Red, double Green, double Blue, int Open);