| Category | Path construction |
|---|
Purpose — Append a straight line segment to (PosX, PosY) (PDF l operator).
Declarations
C
BOOL32 __stdcall pdfLineTo(PPDF IPDF, double PosX, double PosY);
Delphi
function pdfLineTo(const IPDF: PPDF; PosX, PosY: Double): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
PosX, PosY | Double | Line endpoint. |
Return value — TRUE on success; FALSE if no content stream is open.
See also — pdfMoveTo
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Graphics
Category
Core
Exported names
pdfLineTo
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.