|
program Rectangle; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // Файл PDF буде показано автоматично HPDF.FileName := 'Rectangle.pdf'; HPDF.BeginDoc; // Створення файлу PDF HPDF.CurrentPage.Rectangle( 10, 10, 100, 100 ); // Малювання прямокутника and fill HPDF.CurrentPage.ClosePathFillAndStroke; HPDF.EndDoc; // Закриття файлу PDF finally HPDF.Free; end; end. |