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

DynaPDF Manual - Page 394

Previous Page 393   Index   Next Page 395

Function Reference
Page 394 of 750
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.
GetInPrintSettings
Syntax:
LBOOL pdfGetInPrintSettings(
const PPDF* IPDF,
struct TPDFPrintSettings* Settings)
struct TPDFPrintSettings
{
TDuplexMode DuplexMode;
// See below
SI32 NumCopies;
// -1 means not set. The maximum value is 5
SI32 PickTrayByPDFSize; // -1 means not set. 0 == false, 1 == true
// If set, the array contains PrintRangesCount * 2 values. Each pair
// consists of the first and last page of the sub-range. The first page
// in the PDF file is denoted by 0.
UI32*
PrintRanges;
UI32
PrintRangesCount;
// Number of ranges
 

Previous topic: GetInOrientation

Next topic: GetIsFixedPich