program RoundRect;

{$APPTYPE CONSOLE}

uses

SysUtils, Graphics, Classes, HPDFDoc;

 

var

HPDF: THotPDF;

 

const

DashArray: array[0..3] of Byte = (6, 4, 2, 4);

 

begin

HPDF := THotPDF.Create(nil);

try

HPDF.AutoLaunch := true;                 // فایل PDF به طور خودکار نشان داده خواهد شد

HPDF.FileName := 'RoundRect.pdf';

HPDF.BeginDoc;                               // ایجاد فایل PDF

 

HPDF.CurrentPage.SetDash( DashArray, 0 );                    // Set  - . -  dash pattern

HPDF.CurrentPage.RoundRect( 10, 10, 200, 100, 20, 20 ); // ترسیم مستطیل با گوشه‌های گرد

HPDF.CurrentPage.Stroke;                                             // and stroke

 

HPDF.EndDoc;                        // بستن فایل PDF

finally

HPDF.Free;

end;

end.