API referenceCore SDK

pdfGetActionType

Get the TActionType of an action by its handle.

CategoryActions
AvailabilityPartial — GoToE/SetOCGState/Movie kinds unmapped — see the chapter note above

Purpose — Get the TActionType of an action by its handle.

Declarations

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

TActionType (from Lumas.Pdf.Types; ordinals matter):

Delphi
TActionType = (atGoTo, atGoToR, atHide, atImportData, atJavaScript,
               atLaunch, atMovie, atNamed, atRendition, atReset,
               atSetOCGState, atSound, atSubmit, atThread, atTransition,
               atURI, atGoTo3DView, atGoToE, atRichMediaExec);

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
ActHandleCardinalAction handle from any pdfCreate*Action call.

Return valueOrd(TActionType) on success; -1 if ActHandle is out of range, or if the action is a GoToE, SetOCGState, or Movie action (see the chapter-level gap note above).

See alsopdfGetActionTypeEx

C# (P/Invoke)

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

Getters

Exported names

pdfGetActionType

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.