DASetPageMode

Document properties, Direct access functionality

Description

Sets the initial page mode of the document using the Direct Access functionality. When mode 4 (/UseOC) is selected, the saved document is raised to PDF 1.5. When mode 5 (/UseAttachments) is selected, the saved document is raised to PDF 1.6.

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

FileHandleDirect-access handle returned by one of the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
NewMode0 normal view, 1 outlines pane, 2 thumbnails pane, 3 full-screen mode, 4 optional-content panel, 5 attachments panel; values outside 0..5 are treated as 0

Return values

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