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

DynaPDF Manual - Page 323

Previous Page 322   Index   Next Page 324

Function Reference
Page 323 of 750
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.
GetAnnotEx
Syntax:
LBOOL pdfGetAnnotEx(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Annotation handle
struct TPDFAnnotationEx ADDR Annot) // Structure to be filled
struct TPDFAnnotationEx
{
TAnnotType
Type;
LBOOL
Deleted;
// Marked as deleted?
struct TPDFRect BBox;
// Bounding box in bottom-up coordinates
float
BorderWidth;
UI32
BorderColor;
TBorderStyle
BorderStyle;
UI32
BackColor;
UI32
Handle;
char*
AuthorA;
UI16*
AuthorW;
char*
ContentA;
UI16*
ContentW;
char*
NameA;
UI16*
NameW;
char*
SubjectA;
UI16*
SubjectW;
UI32
PageNum;
THighlightMode
HighlightMode;
// Page link annotations only
SI32
DestPage;
struct TPDFRect DestPos;
TDestType
DestType;
char*
DestFile; // File link or web link annotations
// The Icon type depends on the annotation type. If the annotation type
// is atText the Icon is of type TAnnotIcon. If the annotation type is
// atFileAttach then it is of type TFileAttachIcon. If the annotation
// type is atStamp the Icon is the stamp type (TRubberStamp).
// For any other annotation type this value is not set (-1).
SI32
Icon;
char*
StampName;
// Set only, if Icon == rsUserDefined
UI32
AnnotFlags;
// See TAnnotFlags for available flags
char*
CreateDate;
// Optional Creation Date
char*
ModDate;
// Optional Modification Date
// Grouped is meaningful only if Parent != -1 and Type != atPopUp. If
// true, the annotation is part of an annotation group. Properties like
// Content, CreateDate, ModDate, BackColor, Subject, and Open must be
// taken from the parent annotation.
LBOOL
Grouped;
LBOOL
Open;
// If the annotation has a PopUp annotation.
// The Parent annotation handle is set if the annotation is a PopUp
 

Previous topic: GetAnnotBBox

Next topic: Migration states