DASetPageMode

Document properties, Direct access functionality

Description

Sets the initial page mode of the document using the Direct Access functionality.

Syntax

Delphi

function TPDFlib.DASetPageMode(FileHandle: Integer; NewMode: Integer): Integer;

ActiveX

Function PDFlib::DASetPageMode(FileHandle As Long, NewMode As Long) As Long

DLL

int DLDASetPageMode(int InstanceID, int FileHandle, int NewPageMode);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions NewPageMode 0 = Normal view 1 = Show the outlines pane 2 = Show the thumbnails pane 3 = Show the document in full screen mode 4 = Optional content group panel visible 5 = Attachments panel visible

Return values

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