API referenceCore SDK

pdfSetGDIPlusOptions

Set a GDI+-integration option, keyed by OptionID, for

C
int32_t __stdcall pdfSetGDIPlusOptions(PPDF IPDF, int32_t OptionID, int32_t NewValue);
Delphi
function pdfSetGDIPlusOptions(const IPDF: PPDF; OptionID, NewValue: Integer): Integer; stdcall;

Purpose. Set a GDI+-integration option, keyed by OptionID, for whatever GDI+-based rendering/conversion path consults it (EMF/WMF replay, canvas capture — see V03's GDI-canvas cluster).

Description. Real: stores into a TDictionary<Integer, Integer> (GDIPlusOptions) keyed by OptionID — a genuinely extensible option-bag mechanism, unlike this chapter's several single-fixed-field no-ops. This chapter did not independently re-verify which specific OptionID values are consulted by which GDI+ call site, or a corresponding getter (none was found in this cluster's inventory).

Parameters.

ParameterDescription
IPDFDocument handle.
OptionIDThe option key.
NewValueThe value to associate with that key.

Return value. 1 if IPDF is valid; 0 otherwise.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfSetGDIPlusOptions(IntPtr IPDF, int OptionID, int NewValue);
Area
Core SDK
Category

Setters

Exported names

pdfSetGDIPlusOptions

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.