|
program Rectangle; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc; var HPDF: THotPDF; begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // PDF-Datei wird automatisch angezeigt HPDF.FileName := 'Rectangle.pdf'; HPDF.BeginDoc; // PDF-Datei erstellen HPDF.CurrentPage.Rectangle( 10, 10, 100, 100 ); // Rechteck zeichnen HPDF.CurrentPage.ClosePathStroke; HPDF.EndDoc; // PDF-Datei schließen finally HPDF.Free; end; end. |