|
program PieExample; {$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.DrawPie(10, 10, 110, 110, 50, 10, 10, 50 ); // Desenha uma fatia (pie) HPDF.CurrentPage.Fill; // Traça a curva HPDF.EndDoc; // Close PDF file finally HPDF.Free; end; end. |