THotPDF.PageLayout Property

 

THotPDF.PageLayout Property

THotPDF

 

顶部  上一页  下一页

决定 文档打开时使用的页面布局

 

type

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

 

Delphi 语法:

property PageLayout: THPDFPageLayout;

 

C++ 语法:

__property THPDFPageLayout  PageLayout;

 

说明

在 BeginDoc 之前用 PageLayout 决定文档打开时使用的布局(默认值: plSinglePage)

 

Value                Meaning


plSinglePage                Display one page at a time.

plOneColumn                Display the pages in one column.

plTwoColumnLeft        Display the pages in two columns, with oddnumbered pages on the left.

plTwoColumnRight        双栏显示页面,奇数页在右

plTwoPageLeft        一次显示两页,奇数页在左;需要 PDF 1.5

plTwoPageRight        一次显示两页,奇数页在右;需要 PDF 1.5

 

代码示例

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