|
program HelloWorld; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // PDF dosyası otomatik olarak gösterilir HPDF.FileName := 'Rectangle.pdf'; HPDF.BeginDoc; // PDF dosyası oluştur HPDF.CurrentPage.Rectangle( 10, 10, 100, 100 ); // Dikdörtgen çiz ve doldur HPDF.CurrentPage.ClosePathEoFillAndStroke; HPDF.EndDoc; // PDF dosyasını kapat finally HPDF.Free; end; end. |