API reference › PDF/A & Conformance
pdfAddAnnotToPage
Attach an already-created annotation/field handle to a
C
BOOL32 __stdcall pdfAddAnnotToPage(PPDF IPDF, uint32_t PageNum, uint32_t Handle);
Delphi
function pdfAddAnnotToPage(const IPDF: PPDF; PageNum, Handle: Cardinal): LongBool; stdcall;
Purpose. Attach an already-created annotation/field handle to a specific page's /Annots array — the "move/assign to page" step separate from the annotation's own creation.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
PageNum | 1-based target page. |
Handle | The annotation/field handle to attach. |
Return value. True on success.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
PDF/A & Conformance
Category
Content Creation
Exported names
pdfAddAnnotToPage
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.