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

DynaPDF Manual - Page 395

Previous Page 394   Index   Next Page 396

Function Reference
Page 395 of 750
TPrintScaling PrintScaling;
// psNone means not set
/* 9 reserved fields follow*/
};
typedef enum
{
dpmNone,
// Use the default value of the viewer
dpmSimplex,
dpmFlipShortEdge,
dpmFlipLongEdge
}TDuplexMode;
The function retrieves the print settings of the current open import file. The PDF file must be opened
with OpenImportFile() or OpenImporBuffer() before the function can be used. The print settings are
used to initialize the print dialog in a viewer application. See also SetPrintSettings().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetInRepairMode
Syntax:
LBOOL pdfGetInRepairMode(
const PPDF* IPDF) // Instance pointer
This function can be used to determine whether the current open import file was opened in repair or
normal mode. When a PDF file was loaded in normal mode and if it contains damages which were
not recognized when opening the file, e.g. if it is not possible to load one or more pages of it, then it
is possible to load the file explicitely in repair mode to repair the damages. Not all damages can be
repaired but DynaPDF contains a very robust and powerful PDF parser that is able to repair many
damages in a PDF file.
See also OpenImportFile().
Return values:
If the current open import file was already opened in repair mode then the return value is 1. If it was
loaded in normal mode then the return value is 0. If no import file is in memory the return value is a
negative error code.
GetIsFixedPich
Syntax:
LBOOL pdfGetIsFixedPitch(
const PPDF* IPDF) // Instance pointer
The function returns 1 if the active font is a fixed pitch font or 0 if the font is a variable pitch font.
You must set a font before this function can be used (see SetFont() for further information).
 

Previous topic: GetInPrintSettings

Next topic: GetJavaScript