DynaPDF Manual - Page 348

Previous Page 347   Index   Next Page 349

Function Reference
Page 348 of 770
When new contents must be added, copy the buffer into a new one and replace the content stream
with SetContent() when finished. Do not change a content stream when you don't know exactly what
you are doing. If the content stream contains invalid operators after editing the PDF file will be
damaged.
Remarks:
The function returns a pointer to the original content buffer of the currently open page or template.
DynaPDF is the owner of this buffer, it must not be freed in you application.
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.
 

Previous topic: GetCompressionFilter, GetCompressionLevel, GetContent

Next topic: GetDeviceNAttributes, GetDocInfo