THotPDF.PageLayout Property

 

THotPDF.PageLayout Property

THotPDF

 

返回頂部  上一頁  下一頁

判斷檔案開啟時要使用的 page layout

 

type

plTwoColumnLeft 以兩欄顯示頁面,奇數頁位於左側

 

Delphi 語法:

property PageLayout: THPDFPageLayout;

 

C++ 語法:

__property THPDFPageLayout  PageLayout;

 

說明

使用 PageLayout 判斷檔案開啟時要使用的 page layout(default value: plSinglePage)

 

數值意義


plSinglePage                Display one page at a time.

plOneColumn                Display the pages in one column.

plTwoColumnLeft        以兩欄顯示頁面,奇數頁位於左側

plTwoColumnRight        以兩欄顯示頁面,奇數頁位於右側

 

Code Example

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