AddNoteAnnotationA

Annotations and hotspot links

Description

O sufixo A indica o ponto de entrada ANSI (char) da DLL; a superfície ActiveX/COM expõe apenas a forma Unicode. O comportamento é idêntico ao de AddNoteAnnotation e os argumentos de cadeia de caracteres são interpretados com base na página de código atual definida por SetAnsiMode

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 = Nota

1 = Comentário

2 = Ajuda

3 = Inserir

4 = Chave

5 = Novo parágrafo

6 = Parágrafo

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 = ocultar

1 = mostrar

double PopupWidth, double PopupHeight, wchar_t * Title, wchar_t * Contents, double Red, double Green, double Blue, int Open);