Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 349

Previous Page 348   Index   Next Page 350

Function Reference
Page 349 of 770
GetDeviceNAttributes
Syntax:
LBOOL pdfGetDeviceNAttributes(
void* IAttributes,
// Pointer to attribute object
struct TDeviceNAttributes* Attributes) // Structure to be filled
struct TDeviceNAttributes
{
void* IProcessColorSpace;
// Pointer to process color space
BYTE* ProcessColorants[8];
// Process colorant names
UI32 ProcessColorantsCount; // Number of process colorants
void* Separations[32];
// Pointers to separation color spaces
UI32 SeparationsCount;
// Number of separation color spaces
void* IMixingHints;
// Pointer to optional mixing hints.
void* Reserved01;
void* Reserved02;
void* Reserved03;
void* Reserved04;
};
The function retrieves attributes of a DeviceN or NChannel color space. The parameter IAttributes
must be a valid pointer of an attribute object. This pointer is available in the structure
TPDFColorSpaceObj. See GetColorSpaceObj() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetDocInfo
Syntax:
SI32 pdfGetDocInfo(
const PPDF* IPDF,
// Instance pointer
TDocumentInfo DInfo, // Document info entry
UI16* ADDR Value)
// Value as Unicode string (null-terminated)
typedef enum
{
diAuthor
= 0,
diCreator
= 1,
diKeywords
= 2,
diProducer
= 3,
diSubject
= 4,
diTitle
= 5,
diCompany
= 6,
diPDFX_Ver
= 7,
// GetInDocInfo() or GetInDocInfoEx()
diCustom
= 8,
// Not supported -> Use GetDocInfoEx()
diPDFX_Conf
= 9,
// GetInDocInfo() or GetInDocInfoEx()
diCreationDate = 10, // Available after a PDF file was imported
diModDate
= 11
// GetInDocInfo() or GetInDocInfoEx()
 

Previous topic: GetDefBitsPerPixel, GetDescent

Next topic: GetDocInfoCount, GetDocInfoEx