API referenceCore SDK

pdfEndLayer

Close the marked-content region opened by

CategoryOptional content / content streams

Purpose — Close the marked-content region opened by pdfBeginLayer.

Description — Writes EMC to the open content stream and decrements the open-layer counter.

Declarations

C
BOOL32 __stdcall pdfEndLayer(PPDF IPDF);
Delphi
function pdfEndLayer(const IPDF: PPDF): LongBool; stdcall; external 'LumasPdf.dll';

Return valueTRUE on success; FALSE if no layer is currently open (counter at 0) or there is no open content stream.

See alsopdfBeginLayer

C# (P/Invoke)

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

Core

Exported names

pdfEndLayer

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.