Phương thức THotPDF.AddPage

 

THotPDF.AddPage

THotPDF

 

Đầu trang  Trước  Tiếp

Thêm một trang mới vào tài liệu

 

Cú pháp Delphi:

procedure AddPage;

 

Cú pháp C++:

void __fastcall AddPage ( void );

 

Mô tả

Dùng phương thức AddPage để thêm một trang trống mới vào tài liệu hiện tại

 

Ví dụ mã

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' );