|
program CurveExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // PDF-файл будет показан автоматически HPDF.FileName := 'Curve.pdf'; HPDF.BeginDoc; // Создать PDF-файл HPDF.CurrentPage.MoveTo( 50, 300 ); // Move first point HPDF.CurrentPage.CurveToC(60, 50, 150, 50, 200, 200); // Нарисовать кривую HPDF.CurrentPage.Stroke; // Stroke curve HPDF.EndDoc; // Закрыть PDF-файл finally HPDF.Free; end; end. |