HotPDF Developer Reference
Delphi and C++Builder PDF component help
|
program CurveExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // PDF file will be shown automatically HPDF.FileName := 'Curve.pdf'; HPDF.BeginDoc; // Create PDF file HPDF.CurrentPage.MoveTo( 50, 300 ); // Move first point HPDF.CurrentPage.CurveToV(150, 50, 200, 200); // Draw curve HPDF.CurrentPage.Stroke; // Stroke curve HPDF.EndDoc; // Close PDF file finally HPDF.Free; end; end. |