|
THPDFPage |
顶部 |
|
THPDFPage represents a single page in the PDF document.
单元 HPDFDoc.pas
说明 使用 THPDFPage 绘制 paths、放置文本、渲染图像,并控制 size、orientation 和 graphics state 等 page-level settings
使用示例:
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;
|