Thuộc tính THotPDF.PageLayout

 

THotPDF.PageLayout Property

THotPDF

 

Đầu trang  Trước  Tiếp

Xác định bố cục trang sẽ được dùng khi tài liệu được mở

 

type

THPDFPageLayout = (plSinglePage, plOneColumn, plTwoColumnLeft, plTwoColumnRight);

 

Delphi syntax:

property PageLayout: THPDFPageLayout;

 

C++ syntax:

__property THPDFPageLayout  PageLayout;

 

Mô tả

Dùng PageLayout để xác định bố cục trang sẽ được dùng khi tài liệu mở ra. Giá trị mặc định: plSinglePage

 

Giá trị                Ý nghĩa


plSinglePage                Hiển thị một trang tại một thời điểm

plOneColumn                Hiển thị các trang theo một cột

plTwoColumnLeft        Hiển thị các trang theo hai cột, với các trang lẻ ở bên trái

plTwoColumnRight        Hiển thị các trang theo hai cột, với các trang lẻ ở bên phải

 

Ví dụ mã

HPDF.OwnerPassword := 'password';          // Set owner password (required to change security settings)
HPDF.UserPassword := 'user';               // Set user password (required to open the document)
HPDF.ProtectOptions := [poEdit, poAnnot];  // Disallow editing and annotations
HPDF.ActivateProtection := true;           // Enable PDF security