DASetPageLayout
Document properties, Direct access functionality
Description
Sets the initial page layout of the document using the Direct Access functionality. Two-page layouts (values 4 and 5) raise the saved document to PDF 1.5.
Syntax
Delphi
Function TPDFlib.DASetPageLayout(FileHandle: Integer; NewLayout: Integer): Integer;
ActiveX
Function PDFlib::DASetPageLayout(FileHandle As Long, NewPageLayout As Long) As Long
DLL
int DLDASetPageLayout(int InstanceID, int FileHandle, int NewPageLayout);
Parameters
| FileHandle | Direct-access handle returned by one of the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions |
|---|---|
| NewLayout | 0 single page, 1 one column, 2 two columns with odd pages on the left, 3 two columns with odd pages on the right, 4 two pages with odd pages on the left, 5 two pages with odd pages on the right, 6 no preference (the entry is removed); values outside 0..6 are treated as 0 |
Return values
| 0 | The page layout could not be set |
|---|---|
| 1 | The page layout was set successfully |