HotPDF Delphi PDF Component Developer Guide | ![]() |
THotPDF |
Top Previous Next |
THotPDF main class that allow to create and manage PDF files.
Unit HPDFDoc
Description Use THotPDF to create PDF files by an application. A document creating is started by a call to BeginDoc. The application sends commands through the CurrentPage property. You can move to a new page by calling the AddPage method. The PDF file stays open until the application calls EndDoc.
Use the THotPDF properties to manage document creating. For example, pdf file encryption is determined by the ActivateProtection property.
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 |