API referenceText

pdfGetLastTextPosX

X coordinate after the most recent successful text write.

CategoryWrite-position tracking

Purpose — X coordinate after the most recent successful text write.

Description — Reflects the value set by whichever writer last succeeded; recall from E01 that pdfWriteText reports the end of the drawn run, while pdfWriteAngleText reports the start — this getter simply surfaces whatever the last writer stored, so its meaning depends on which writer you called most recently.

Declarations

C
double __stdcall pdfGetLastTextPosX(PPDF IPDF);
Delphi
function pdfGetLastTextPosX(const IPDF: PPDF): Double; stdcall; external 'LumasPdf.dll';

Return value — Last tracked X position; 0.0 if nothing written yet.

See alsopdfGetLastTextPosXAbs

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern double pdfGetLastTextPosX(IntPtr IPDF);
Area
Text
Category

Getters

Exported names

pdfGetLastTextPosX

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.