program CurveExample;

{$APPTYPE CONSOLE}

uses

SysUtils, Graphics, Classes, HPDFDoc;

var

HPDF: THotPDF;

begin

HPDF := THotPDF.Create( nil );

try

HPDF.AutoLaunch := true; // The PDF file will be shown automatically

HPDF.FileName := 'Curve.pdf';

HPDF.BeginDoc; // Create the PDF file

HPDF.CurrentPage.MoveTo( 50, 300 ); // Move to the first point

HPDF.CurrentPage.CurveToY( 60, 50, 200, 200 ); // Draw the curve

HPDF.CurrentPage.Stroke; // Stroke the curve

HPDF.EndDoc; // Close the PDF file

finally

HPDF.Free;

end;

end.