API referenceText

pdfSetExtColorSpace

Nominally: set the "current" extended color space handle.

CategoryExtended color space (non-functional)
AvailabilityNon-functional (write-only) — see the chapter note above

Purpose — Nominally: set the "current" extended color space handle.

Description — Stores Handle into FExtColorSpaceH and always returns TRUE, with no validation. That field is never read elsewhere in the codebase — this call has no effect on any drawing operation or serialized output.

Declarations

C
BOOL32 __stdcall pdfSetExtColorSpace(PPDF IPDF, uint32_t Handle);
Delphi
function pdfSetExtColorSpace(const IPDF: PPDF; Handle: Cardinal): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
HandleCardinalAccepted and stored; has no effect on output.

Return value — Always TRUE on a valid handle; FALSE on an invalid IPDF. The success return gives no indication of the no-op behavior.

Remarks — For color spaces that actually affect output, use pdfSetFillColorSpace/pdfSetStrokeColorSpace (not in this chapter) or the concrete color-setting calls (pdfSetFillColor, pdfSetSeparationColor, etc.) that write real content-stream color operators.

See alsopdfSetExtFillColorSpace, pdfSetExtStrokeColorSpace

C# (P/Invoke)

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

Setters

Exported names

pdfSetExtColorSpace

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.