DynaPDF Manual - Page 480

Previous Page 479   Index   Next Page 481

Function Reference
Page 480 of 818
GetPrintSettings
Syntax:
LBOOL pdfGetPrintSettings(
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
TPrintScaling PrintScaling;
// dpmNone 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 currently defined print settings of the document. 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.
GetPtDataArray
Syntax:
LBOOL pdfGetPtDataArray(
const IPTD* PtData, // Pointer of Point Data dictionary
UI32 Index,
// Array index
char** DataType,
// Out -> Data type as string
float** Values,
// Out -> Pointer of float array
UI32* ValCount)
// Out -> Number of values in the array
The function returns a Point Data dictionary. A point data dictionary specifies points in 2D space for
geospatical measures. The parameter DataType specifies the type of points, such as LAT for latitude
in degrees, LON for longitute in degrees, or ALT for altitude in metres.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: ZUGFeRD, Factur-X, XRechnung, VersionConst, Not implemented

Next topic: GetPtDataObj, GetRelFileNode


Start Chat