API referenceImport & Output APIs

pdfReplaceICCProfileEx

Buffer variant of [pdfReplaceICCProfile](#api-pdfreplaceiccprofile); the profile bytes are copied out of Buffer.

Buffer variant of pdfReplaceICCProfile; the profile bytes are copied out of Buffer.

C
int32_t __stdcall pdfReplaceICCProfileEx(PPDF IPDF, uint32_t ColorSpace, void* Buffer, uint32_t BufSize);

Compatibility shims (stored, not consumed)

These calls exist so code written for the classic flat C ABI runs unchanged. Each stores its value on the instance and the paired getter reads it back, but no engine code path consults the value — this engine renders in-process and manages import sources per-instance.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfReplaceICCProfileEx(IntPtr IPDF, uint ColorSpace, IntPtr Buffer, uint BufSize);
Area
Import & Output APIs
Category

Core

Exported names

pdfReplaceICCProfileEx

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.