DynaPDF Manual - Page 459
Previous Page 458 Index Next Page 460

Function Reference
Page 459 of 860
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).
Return values:
If the function succeeds the return value 0 or 1 depending on whether the font is a fixed pitch font. If
the function fails the return value is a negative error code.
Previous topic: GetInPDFVersionEx, GetInPrintSettings
Next topic: GetIsTaggingEnabled, GetItalicAngle, GetJavaScript