API referenceCore SDK

pdfUnLockLayer

Clear a layer's locked flag.

CategoryOptional 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

ParameterTypeDescription
IPDFPPDFInstance handle.
LayerCardinalOCG handle to unlock.

Return valueTRUE if Layer is a valid OCG; FALSE otherwise.

See alsopdfLockLayer

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.