Kod Örneği
program StrokeExample;
{$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 := '\Circle.pdf'; // PDF dosya adını ayarla
HPDF.BeginDoc; // PDF dosyası oluştur
HPDF.CurrentPage.Circle( 200, 200, 100 ); // Daire çiz
HPDF.CurrentPage.Stroke; // ve kontur çiz
HPDF.EndDoc; // PDF dosyasını kapat
finally
HPDF.Free;
end;
end.