THotPDF.AddPage Method

 

THotPDF.AddPage

THotPDF

 

顶部  上一页  下一页

向文档添加新页面

 

Delphi 语法:

procedure AddPage;

 

C++ 语法:

void __fastcall AddPage ( void );

 

说明

使用 AddPage 方法向当前文档添加新的空白页面

 

代码示例

HPDF.AddPage( A4, poPortrait );          // Add A4 page in portrait orientation
HPDF.CurrentPage.TextOut( 200, 400, 'Page 1' );

HPDF.AddPage( Letter, poLandscape );     // Add Letter page in landscape orientation
HPDF.CurrentPage.TextOut( 300, 200, 'Page 2' );