|
program HelloWorld; {$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 ); // Малювання кола HPDF.CurrentPage.ClosePathStroke; // and stroke HPDF.EndDoc; // Закриття файлу PDF finally HPDF.Free; end; end. |