API referenceCore SDK

pdfGetObjActionCount

Number of actions attached to a given (ObjType, ObjHandle).

CategoryActions

Purpose — Number of actions attached to a given (ObjType, ObjHandle).

Declarations

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

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
ObjTypeIntegerOrd(TObjType) of the owning object (note: plain Integer here, not TObjType, unlike the sibling Ex/2 getters).
ObjHandleCardinalOwning object's handle.

Return value — Number of attachments (0 if none or the pair is unrecognized). Populated only by the (V12) pdfAddActionToObj family — this table is separate from the single hardcoded slot pdfGetActionHandle checks.

See alsopdfGetObjActions

C# (P/Invoke)

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

Getters

Exported names

pdfGetObjActionCount

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.