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)BeginDoc 用來決定文件開啟時使用的版面(預設值:  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 := [prPrint, prInformationCopy]; // Allow printing and copying only
HPDF.ActivateProtection := true;           // Enable PDF security