API referenceAnnotations

pdfGetAnnotType

Return an annotation's TAnnotType ordinal by document-wide

C
int32_t __stdcall pdfGetAnnotType(PPDF IPDF, uint32_t Handle);
Delphi
function pdfGetAnnotType(const IPDF: PPDF; Handle: Cardinal): Integer; stdcall;

Purpose. Return an annotation's TAnnotType ordinal by document-wide handle — the fuller, handle-based type-resolution path (contrast with pdfGetPageAnnot's narrower /Subtype-name mapping above).

Parameters.

ParameterDescription
IPDFDocument handle.
HandleDocument-wide annotation handle.

Return value. The TAnnotType ordinal; 24 (atUnknown) if Handle doesn't resolve or the annotation's true kind isn't recognized.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetAnnotType(IntPtr IPDF, uint Handle);
Area
Annotations
Category

Annotations

Exported names

pdfGetAnnotType

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.