|
THPDFPage |
Sus |
|
THPDFPage represents a single page in the PDF document.
Unit HPDFDoc.pas
Descriere Utilizați THPDFPage pentru a desena trasee, a plasa text, a reda imagini și a controla setări la nivel de pagină precum dimensiunea, orientarea și starea grafică
Exemplu de utilizare:
uses ... HPDFDoc, ...
type ... HPDF: THotPDF; ...
procedure TForm1.HelloWorldButtonClick(Sender: TObject); begin HPDF.AutoLaunch := true; // Show the PDF after it is created HPDF.FileName := '.\HelloWorld.pdf'; HPDF.BeginDoc; // Start PDF generation HPDF.CurrentPage.TextOut(10, 10, 0, 'Hello World!'); // Write text on the first page HPDF.EndDoc; // Finalize and save the PDF end;
|