AddNoteAnnotation
Description
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.
Syntax
Delphi
function TQuickPDF0813.AddNoteAnnotation(Left, Top: Double; AnnotType: Integer;
PopupLeft, PopupTop, PopupWidth, PopupHeight: Double; Title, Contents: WideString;
Red, Green, Blue: Double; Open: Integer): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::AddNoteAnnotation(Left As Double, Top As Double,
AnnotType As Long, PopupLeft As Double, PopupTop As Double,
PopupWidth As Double, PopupHeight As Double, Title As String,
Contents As String, Red As Double, Green As Double, Blue As Double,
Open As Long) As Long
DLL
int QuickPDFAddNoteAnnotation(int InstanceID, double Left, double Top,
int AnnotType, double PopupLeft, double PopupTop, double PopupWidth,
double PopupHeight, wchar_t * Title, wchar_t * Contents, double Red,
double Green, double Blue, int Open)
Parameters
| Left | The horizontal co-ordinate of the anchor for the annotation |
| Top | The vertical co-ordinate of the anchor for the annotation |
| AnnotType |
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 |
| 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 |