HotPDF Developer Reference
Delphi and C++Builder PDF component help
|
program HelloWorld; {$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 := 'Rectangle.pdf'; HPDF.BeginDoc; // Create PDF file HPDF.CurrentPage.Rectangle( 10, 10, 100, 100 ); // Draw rectangle and fill HPDF.CurrentPage.ClosePathEoFillAndStroke; HPDF.EndDoc; // Close PDF file finally HPDF.Free; end; end. |