| Exported names | pdfCreateHideAction |
|---|
Purpose — Create an action that shows or hides a form field.
Description — Registers action kind 6 with the target field handle in GotoPg and the hide/show flag in a (1=hide, 0=show — the field becomes visible when triggered with Hide=FALSE).
Declarations
C
int32_t __stdcall pdfCreateHideAction(PPDF IPDF, uint32_t AField, BOOL32 Hide);
Delphi
function pdfCreateHideAction(const IPDF: PPDF; AField: Cardinal; Hide: LongBool): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
AField | Cardinal | Target form-field handle. |
Hide | BOOL32 | TRUE = hide the field when triggered; FALSE = show it. |
Return value — 1-based action handle (> 0), or 0 on an invalid handle. AField is not validated against the field table at creation time.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfCreateHideAction(IntPtr IPDF, uint AField, [MarshalAs(UnmanagedType.Bool)] bool Hide);
Area
Core SDK
Category
Object Creation
Exported names
pdfCreateHideAction
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.