| Category | Optional content |
|---|
Purpose — Clear a layer's locked flag.
Description — Same underlying LockLayerH(Layer, Lock) as pdfLockLayer, called with Lock=FALSE.
Declarations
C
BOOL32 __stdcall pdfUnLockLayer(PPDF IPDF, uint32_t Layer);
Delphi
function pdfUnLockLayer(const IPDF: PPDF; Layer: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Layer | Cardinal | OCG handle to unlock. |
Return value — TRUE if Layer is a valid OCG; FALSE otherwise.
See also — pdfLockLayer
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Core
Exported names
pdfUnLockLayer
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.