DynaPDF Manual - Page 385

Previous Page 384   Index   Next Page 386

Function Reference
Page 385 of 839
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()
}TDocumentInfo;
The function retrieves a document info entry as Unicode string. The parameter Value holds a pointer
to the original Unicode value, it must not be NULL. Do not change or free the value. GetDocInfo()
returns only the values of predefined document info entries. All document info entries, incl. user
defined keys can be accessed with GetDocInfoEx().
 

Previous topic: GetDefBitsPerPixel, GetDescent

Next topic: GetDocInfoCount, GetDocInfoEx