DASetPageLayout
Document properties, Direct access functionality
Description
Sets the initial page layout of the document using the direct Access Functionality.
Syntax
Delphi
function TPDFlib.DASetPageLayout(FileHandle: Integer; NewLayout: Integer): Integer;ActiveX
Function PDFlib::DASetPageLayout(FileHandle As Long, NewLayout As Long) As LongDLL
int DLDASetPageLayout(int InstanceID, int FileHandle, int NewPageLayout);Parameters
| FileHandle | A 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
| 0 | The page layout could not be set |
|---|---|
| 1 | The page layout was set successfully |