pdfGetActionTypeEx
Get the TActionType of the ActIndex-th action attached to
| Category | Actions |
|---|---|
| Availability | Partial — 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
int32_t __stdcall pdfGetActionTypeEx(PPDF IPDF, TObjType ObjType, uint32_t ObjHandle, uint32_t ActIndex);
function pdfGetActionTypeEx(const IPDF: PPDF; ObjType: TObjType; ObjHandle, ActIndex: Cardinal): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
ObjType | TObjType | Owning object's type. |
ObjHandle | Cardinal | Owning object's handle. |
ActIndex | Cardinal | Zero-based index into that object's attached-action list. |
Return value — Ord(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 also — pdfGetObjActions
C# (P/Invoke)
public static extern int pdfGetActionTypeEx(IntPtr IPDF, TObjType ObjType, uint ObjHandle, uint ActIndex);
Getters
pdfGetActionTypeEx
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.