DynaPDF Manual - Page 408

Previous Page 407   Index   Next Page 409

Function Reference
Page 408 of 777
TPrintScaling PrintScaling;
// psNone means not set
/* 9 reserved fields follow*/
typedef enum
// Use the default value of the viewer
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.
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.
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: GetInPageCount, GetInPDFVersion, GetInPrintSettings

Next topic: GetIsTaggingEnabled, GetItalicAngle, GetJavaScript