THPDFPage
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage

Methods         Properties      Overview

Top 

THPDFPage provides an page object for the PDF document.

 

Unit

HPDFDoc.pas

 

Description

Use THPDFPage as a mian object for drawing, filling a variety of shapes and lines, writing text, rendering graphic images etc.

 

Using example:

 

uses

  ...

  HPDFDoc,

  ...

 

type

   ...

   HPDF: THotPDF;

   ...

 

procedure TForm1.HelloWorldButtonClick(Sender: TObject);

begin

   HPDF.AutoLaunch := true;                                          // PDF file will be shown automatically

   HPDF.FileName := 'Hello world.pdf';

   HPDF.BeginDoc;                                                       // Create PDF file 

   HPDF.CurrentPage.TextOut(10, 10, 0, 'Hello world !!!');  // Print text

   HPDF.EndDoc;                                                         // Close PDF file

end;

 

Copyright©2007-2019 losLab.com