DynaPDF Manual - Page 439

Previous Page 438   Index   Next Page 440

Function Reference
Page 439 of 839
GetInPageCount
Syntax:
SI32 pdfGetInPageCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of pages contained in an external PDF file. The external PDF file
must be opened with the function OpenImportFile() or OpenImporBuffer() beforehand.
Return values:
If the function succeeds the return value is the number of pages. If the function fails the return value
is a negative error code.
GetInPDFVersion
Syntax:
SI32 pdfGetInPDFVersion(
const PPDF* IPDF) // Instance pointer
The function returns the PDF version number of an external PDF file. Values below 10 are the minor
version: 3 for PDF 1.3, 4 for PDF 1.4 and so on.
If the major version is higher than 1, e.g. PDF 2.0, the function returns the version as follows:
MajorVersion * 10 + MinorVersion
For PDF 2.1 the result would be 21.
The PDF file must be opened with OpenImportFile() or OpenImporBuffer() beforehand.
Return values:
If the function succeeds the return value is the minor version number. If the function fails the return
value is a negative error code.
GetInPDFVersionEx
Syntax:
SI32 pdfGetInPDFVersionEx(
const PPDF* IPDF,
// Instance pointer
struct TPDFVersionInfo* Value) // Version structure or NULL
The function retrieves the version information of the currently open import file. The function can be
called with or without the structure TPDFVersionInfo. If value is set to NULL, the function returns
the version constant as defined in the enum TPDFVersion or -1 if the version is not supported by
DynaPDF.
A return value smaller than -1 indicates that an error occurred.
The version constants are described in detail at GetPDFVersionEx().
 

Previous topic: GetInNamedDest (obsolete), GetInNamedDestCount (obsolete), GetInOrientation

Next topic: GetInPrintSettings, GetInRepairMode