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, NewLayout As Long) As Long

DLL

int DLDASetPageLayout(int InstanceID, int FileHandle, int NewPageLayout);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions NewPageLayout 0 = Single page 1 = One column 2 = Two columns, odd-numbered pages on left 3 = Two columns, odd-numbered pages on right 4 = Two pages, odd-numbered pages on left 5 = Two pages, odd-numbered pages on right 6 = No preference (setting removed from document)

Return values

0The page layout could not be set
1The page layout was set successfully