DynaPDF Manual - Page 779

Previous Page 778   Index   Next Page 780

Function Reference
Page 779 of 839
SetPageLayout
Syntax:
LBOOL pdfSetPageLayout(
const PPDF* IPDF,
// Instance pointer
TPageLayout Layout) // see below
typedef enum
{
plSinglePage
= 0, // Show one page at time
plOneColumn
= 1, // Show the pages continous
plTwoColumnLeft
= 2, // Two columns, start with left column
plTwoColumnRight = 3, // Two columns, start with right column
plTwoPageLeft
= 4, // PDF 1.5
plTwoPageRight
= 5, // PDF 1.5
plDefault
= 6
// Use viewer's default settings
}TPageLayout;
The function sets the page layout that is used when opening the document with Adobe's Acrobat.
Default value = plOneColumn
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetPageMode
Syntax:
LBOOL pdfSetPageMode(
const PPDF* IPDF, // Instance pointer
TPageMode Mode)
// see below
typedef enum
{
pmUseNone
= 0, // Default
pmUseOutlines
= 1, // Show the outline tree
pmUseThumbs
= 2, // Show the thumb nails
pmFullScreen
= 3
// Open the document in full-screen mode
pmUseOC
= 4, // PDF 1.5
pmUseAttachments = 5
// PDF 1.6
}TPageMode;
The function sets the page mode that is used when opening the document with Adobe's Acrobat.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetPageHeight

Next topic: SetPageOrientation, SetPageWidth