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

DynaPDF Manual - Page 341

Previous Page 340   Index   Next Page 342

Function Reference
Page 341 of 750
Return values:
If the function succeeds the return value is the buffer size if bytes. If the function fails the return
value is a negative error code.
GetDefBitsPerPixel
Syntax:
SI32 pdfGetDefBitsPerPixel(
const PPDF* IPDF) // Instance pointer
The function returns default color depth in bits per pixel, which determines whether images should
be down sampled. If the return value is 8 images are converted to 256 indexed color images.
At time of publication only two values are supported:
24 bit: No conversion
8 bit: Conversion to 256 indexed color image
Default value = 24
GetDescent
Syntax:
double pdfGetDescent(
const PPDF* IPDF) // Instance pointer
The function returns the descender of the active font. The descender is a typographic value that
specifies the maximum extent to which characters in the active font descend below the baseline.
The descender is normally a negative value. However, it is always returned as a positive value to
make the usage easier.
Return values:
If the function succeeds the return value is the typographic descender of the active font as positive
double. If the function fails the return value is a negative error code.
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
 

Previous topic: GetContent

Next topic: GetDocInfo