AttachAnnotToForm

Form fields, Annotations and hotspot links

Description

This functions attaches an annotation to the document form.

Use the IsAnnotFormField function to check if the specified annotation can be attached to the document form and whether it is currently attached or not.

Syntax

Delphi

function TPDFlib.AttachAnnotToForm(Index: Integer): Integer;

ActiveX

Function PDFlib::AttachAnnotToForm(Index As Long) As Long

DLL

int DLAttachAnnotToForm(int InstanceID, int Index);

Parameters

IndexThe index of the annotation. The first annotation on the page has an index of 1.

Return values

0The specified annotation could not be attached to the document form.
1The specified annotation was attached successfully to the document form.