|
THPDFPage |
Top Previous Next |
|
THPDFPage represents a single page in the PDF document.
Unit HPDFDoc.pas
Description Use THPDFPage to draw paths, place text, render images, and control page-level settings such as size, orientation, and graphics state Use In ordinary workflows instances are created and owned by
Unit HPDFDoc.pas
Description Use THPDFPage to draw paths, place text, render images, and control page-level settings such as size, orientation, and graphics state.
Using example:
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; // Finalise and save the PDF end;
|