|
program HelloWorld; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // The PDF file will be shown automatically HPDF.FileName := 'Circle.pdf'; HPDF.BeginDoc; // Create the PDF file HPDF.CurrentPage.Circle( 200, 200, 100 ); // Draw a circle HPDF.CurrentPage.ClosePathStroke; // then stroke it HPDF.EndDoc; // Close the PDF file finally HPDF.Free; end; end. |