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

DynaPDF Manual - Page 339

Previous Page 338   Index   Next Page 340

Function Reference
Page 339 of 750
void* Reserved02;
void* Reserved03;
void* Reserved04;
void* Reserved05;
void* Reserved06;
void* Reserved07;
void* Reserved08;
void* Reserved09;
};
The function retrieves the most important properties of a color space. The parameter handle must be
a valid handle of a color space. A color space handle is a simple array index. The number of color
spaces is returned by the function GetColorSpaceCount().Reserved fields of the structure
TPDFColorSpaceObj must be initialized with NULL.
The alternate color space of special color spaces can be accessed with GetColorSpaceObjEx(). The
attributes of a DeviceN or NChannel color space can be accessed with GetDeviceNAttributes().
Note that the range of a Lab color space consists only of four values because the L component has a
fixed range from 0 through 100.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetColorSpaceObjEx
Syntax:
LBOOL pdfGetColorSpaceObjEx(
const PPDF* IColorSpace,
// Pointer of a color space object
struct TPDFColorSpaceObj* CS) // Structure to be filled
The function retrieves the most important properties of a color space like GetColorSpaceObj() but
accepts a pointer of a color space object instead. See also GetColorSpaceObj().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetCompressionFilter
Syntax:
SI32 pdfGetCompressionFilter(
const PPDF* IPDF) // Instance pointer
typedef enum
{
cfFlate = 0,
cfJPEG
= 1,
cfJP2K
= 7
}TCompressionFilter;
 

Previous topic: GetColorSpaceObj

Next topic: GetContent