API referenceCore SDK

pdfGetActionTypeEx

Get the TActionType of the ActIndex-th action attached to

CategoryActions
AvailabilityPartial — same GoToE/SetOCGState/Movie gap as pdfGetActionType

Purpose — Get the TActionType of the ActIndex-th action attached to (ObjType, ObjHandle).

Description — Unlike pdfGetActionHandle, this getter walks the general per-object attachment table (populated by the V12 pdfAddActionToObj family) — ObjType/ObjHandle here are consulted for real, not limited to one hardcoded combination.

Declarations

C
int32_t __stdcall pdfGetActionTypeEx(PPDF IPDF, TObjType ObjType, uint32_t ObjHandle, uint32_t ActIndex);
Delphi
function pdfGetActionTypeEx(const IPDF: PPDF; ObjType: TObjType; ObjHandle, ActIndex: Cardinal): Integer; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
ObjTypeTObjTypeOwning object's type.
ObjHandleCardinalOwning object's handle.
ActIndexCardinalZero-based index into that object's attached-action list.

Return valueOrd(TActionType) on success; -1 if no such attachment exists at that index, or if the attached action is GoToE/SetOCGState/Movie (see the chapter-level gap note).

See alsopdfGetObjActions

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetActionTypeEx(IntPtr IPDF, TObjType ObjType, uint ObjHandle, uint ActIndex);
Area
Core SDK
Category

Getters

Exported names

pdfGetActionTypeEx

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.