Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 717

Previous Page 716   Index   Next Page 718

Function Reference
Page 717 of 770
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.
SetPageWidth
Syntax:
LBOOL pdfSetPageWidth(
const PPDF* IPDF, // Instance pointer
double Value)
// New page width
The function changes the width of the currently open page if any, or the default width for newly
created pages. This function changes the media box of a page (see also SetBBox()). The page width
must be greater zero.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetPageHeight, SetPageLayout

Next topic: SetPDFVersion