|
program StrokeExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc;
var HPDF: THotPDF;
begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // PDF-файл будет показан автоматически HPDF.FileName := 'Circle.pdf'; HPDF.BeginDoc; // Создать PDF-файл HPDF.CurrentPage.Circle( 200, 200, 100 ); // Draw circle HPDF.CurrentPage.Stroke; // and stroke HPDF.EndDoc; // Закрыть PDF-файл finally HPDF.Free; end; end. |