API referenceCore SDK

pdfUnlockDocument

Acquire/release a document-level lock — for coordinating

C
BOOL32 __stdcall pdfLockDocument(PPDF IPDF);
BOOL32 __stdcall pdfUnlockDocument(PPDF IPDF);
Delphi
function pdfLockDocument(const IPDF: PPDF): LongBool; stdcall;
function pdfUnlockDocument(const IPDF: PPDF): LongBool; stdcall;

Purpose. Acquire/release a document-level lock — for coordinating access across the caller's own multiple threads (this SDK's own general threading rule is still "one PPDF handle per thread," per V18 §Threading; this lock is an explicit opt-in mechanism layered on top, not a replacement for that rule).

Return value. True if IPDF is valid; False otherwise.

C# (P/Invoke)

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

Core

Exported names

pdfUnlockDocument

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.