Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 698

Previous Page 697   Index   Next Page 699

Function Reference
Page 698 of 750
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.
SetPDFVersion
Syntax:
LBOOL pdfSetPDFVersion(
const PPDF* IPDF,
// Instance pointer
TPDFVersion Version) // Output PDF version
typedef enum
{
pvPDF_1_0
= 0,
// PDF 1.0
pvPDF_1_1
= 1,
// PDF 1.1
pvPDF_1_2
= 2,
// PDF 1.2
pvPDF_1_3
= 3,
// PDF 1.3
pvPDF_1_4
= 4,
// PDF 1.4 -> default
 

Previous topic: SetPageLayout

Next topic: SetProgressProc