| Category | Optional 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 value — TRUE on success; FALSE if no layer is currently open (counter at 0) or there is no open content stream.
See also — pdfBeginLayer
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.