API referenceCore SDK

pdfSetFloatPrecision

Set the number of decimal digits used when formatting

C
BOOL32 __stdcall pdfSetFloatPrecision(PPDF IPDF, uint32_t NumTextDecDigits, uint32_t NumVectDecDigits);
Delphi
function pdfSetFloatPrecision(const IPDF: PPDF; NumTextDecDigits, NumVectDecDigits: Cardinal): LongBool; stdcall;

Purpose. Set the number of decimal digits used when formatting floating-point coordinates in the output content stream — separately for text-positioning numbers vs. vector/path-geometry numbers.

Description. Verified write-only no-op. Only NumTextDecDigits is even stored (into FFloatPrecision) — NumVectDecDigits is accepted by the ABI but never passed through at all, and FFloatPrecision itself has no getter exposed in this ABI and, more importantly, no read-site anywhere in the content- stream number-formatting code — the serializer always uses its own fixed internal precision regardless of this call. Calling this has no effect on output number formatting whatsoever.

Parameters.

ParameterDescription
IPDFDocument handle.
NumTextDecDigitsStored but never consulted.
NumVectDecDigitsAccepted but not even stored — dropped entirely.

Return value. True if IPDF is valid.

C# (P/Invoke)

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

Setters

Exported names

pdfSetFloatPrecision

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.