DynaPDF Manual - Page 353

Previous Page 352   Index   Next Page 354

Function Reference
Page 353 of 821
Return values:
If the function succeeds the return value is 1 and the parameter Annot is filled with values. If the
function fails the return value is 0 and the parameter Annot is left unchanged.
GetAnnotBBox
Syntax:
SI32 pdfGetAnnotBBox(
const PPDF* IPDF)
// Instance pointer
UI32 Handle,
// Annotation handle
struct TPDFRect ADDR BBox) // see below
struct TPDFRect
{
double Left;
// Lower x-coordinate
double Bottom; // Lower y-coordinate
double Right;
// Upper x-coordinate
double Top;
// Upper y-coordinate
};
This function retrieves the bounding box of an annotation measured in bottom-up coordinates. A
bounding box is defined as rectangle giving the coordinates of a pair of diagonally opposite corners.
Remarks:
It is possible to change the bounding box of an annotation with the function ChangeAnnotPos().
Return values:
If the function succeeds the return value is 1 and the parameter BBox is filled with values. If the
function fails the return value is 0 and the parameter BBox is left unchanged.
GetAnnotCount
Syntax:
SI32 pdfGetAnnotCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of annotations currently used in the document. Note: This value
includes also annotations which were deleted by DeleteAnnotation() because annotations are not
physically deleted at runtime. This value can be used to loop over all annotations. Annotation
handles are simple array indexes.
 

Previous topic: GetAllocBy, GetAnnot (obsolete)

Next topic: GetAnnotEx