BOOL32 __stdcall pdfSetFloatPrecision(PPDF IPDF, uint32_t NumTextDecDigits, uint32_t NumVectDecDigits);
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.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
NumTextDecDigits | Stored but never consulted. |
NumVectDecDigits | Accepted but not even stored — dropped entirely. |
Return value. True if IPDF is valid.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetFloatPrecision
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.