API referenceGraphics

pdfLineTo

Append a straight line segment to (PosX, PosY) (PDF l

CategoryPath 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

ParameterTypeDescription
IPDFPPDFInstance handle.
PosX, PosYDoubleLine endpoint.

Return valueTRUE on success; FALSE if no content stream is open.

See alsopdfMoveTo

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.