|
program CurveExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // O arquivo PDF será exibido automaticamente HPDF.FileName := 'Curve.pdf'; HPDF.BeginDoc; // Cria o arquivo PDF HPDF.CurrentPage.MoveTo( 50, 300 ); // Move o primeiro ponto HPDF.CurrentPage.CurveToY( 60, 50, 200, 200 ); // Desenha uma curva HPDF.CurrentPage.Stroke; // Traça a curva HPDF.EndDoc; // Fecha o arquivo PDF finally HPDF.Free; end; end. |