THotPDF.PageLayout Property

 

THotPDF.PageLayout Property

THotPDF

 

Top  Previous  Next

Determines the page layout to be used when the document is opened.

 

type

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

 

Delphi syntax:

property PageLayout: THPDFPageLayout;

 

C++ syntax:

__property THPDFPageLayout  PageLayout;

 

Description

Use PageLayout before BeginDoc to determine the layout used when the document is opened (default value:  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 odd-numbered pages on the left

plTwoColumnRight        Display the pages in two columns, with odd-numbered pages on the right

plTwoPageLeft        Display two pages at a time, with odd-numbered pages on the left; requires PDF 1.5

plTwoPageRight        Display two pages at a time, with odd-numbered pages on the right; requires PDF 1.5

 

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