API referenceCore SDK

pdfGetHideAction

Read back a Hide action's hide/show flag.

CategoryActions
AvailabilityPartial — field-list not exposed

Purpose — Read back a Hide action's hide/show flag.

Description — Fills Action.Hide from the stored flag. Action.FieldsCount is hardcoded to 1 (the single field handle passed at creation) and Action.Fields is always NULL — the field handle itself is not exposed through this record; this engine does not track a PIFLD array for hide actions.

Declarations

C
BOOL32 __stdcall pdfGetHideAction(PPDF IPDF, uint32_t Handle, TPDFHideAction* Action);
Delphi
function pdfGetHideAction(const IPDF: PPDF; Handle: Cardinal; var Action: TPDFHideAction): LongBool; stdcall; external 'LumasPdf.dll';

TPDFHideAction:

Delphi
TPDFHideAction = record
  StructSize:  Cardinal;
  Fields:      PIFLD;      // always nil in this build
  FieldsCount: Cardinal;   // always 1 in this build
  Hide:        LongBool;
end;

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
HandleCardinalAction handle from pdfCreateHideAction.
ActionTPDFHideAction*Receives Hide; Fields/FieldsCount are placeholders — see Description.

Return valueTRUE if Handle names a Hide (kind 6) action; FALSE otherwise.

See alsopdfCreateHideAction

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category

Getters

Exported names

pdfGetHideAction

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.