|
Xác định kích thước dọc của trang
Cú pháp Delphi:
property Height: integer;
Cú pháp C++:
__property int Height;
Mô tả
Dùng thuộc tính Height để đọc hoặc thay đổi chiều cao của trang
Ví dụ mã
// Creating multi-size pages in a single PDF document
HPDF.AddPage( A4, poPortrait );
Label1.Caption := 'Page 1 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );
HPDF.AddPage( Letter, poLandscape );
Label2.Caption := 'Page 2 = ' + IntToStr( HPDF.CurrentPage.Width ) + 'x' + IntToStr( HPDF.CurrentPage.Height );
Xem thêm: Width, Size
|