|
program CurveExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // سيتم عرض ملف PDF تلقائيًا HPDF.FileName := 'Curve.pdf'; HPDF.BeginDoc; // إنشاء ملف PDF HPDF.CurrentPage.MoveTo( 50, 300 ); // تحريك النقطة الأولى HPDF.CurrentPage.CurveToY( 60, 50, 200, 200 ); // رسم منحنى HPDF.CurrentPage.Stroke; // رسم إطار المنحنى HPDF.EndDoc; // إغلاق ملف PDF finally HPDF.Free; end; end. |