DynaPDF Manual - Page 385

Previous Page 384   Index   Next Page 386

Function Reference
Page 385 of 860
GetAnnotTextAlign
Syntax:
SI32 pdfGetAnnotTextAlign(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Annotation handle
typedef enum
{
taLeft,
taCenter,
taRight,
taJustify
}TTextAlign;
The function returns the text alignment of an annotation. At time of publication only FreeText
annotations support a text alignment.
Return values:
If the function succeeds the return value is the text alignment, a value greater or equal zero. Make a
typecast to TTextAlign in this case. If the function fails the return value is a negative error code.
GetAnnotType
Syntax:
SI32 pdfGetAnnotType(
const PPDF* IPDF, // Instance pointer
UI32 Handle)
// Annotation handle
typedef enum
{
atCaret,
// Caret annotation
atCircle,
// Circle annotation
atFileLink,
// A Link annotation with an associated GoToR action
atFreeText,
atHighlight,
// Highlight annotation
atInk,
atLine,
atPageLink,
// A Link annotation with an associated GoTo action
atPolygon,
atPolyLine,
atPopUp,
atSquare,
atSquiggly,
// Highlight annotation
atStamp,
atStrikeOut,
// Highlight annotation
atText,
// Also used as container to store the State Model
atUnderline,
// Highlight annotation
atWebLink,
// A Link annotation with an associated URI action
atWidget,
// Form Fields are handled separately
at3D,
// PDF 1.6
atSoundAnnot,
// PDF 1.2
atFileAttach,
// PDF 1.3
atRedact,
// PDF 1.7
atWatermark,
// PDF 1.6
atUnknown,
// Unknown annotation type
atMovieAnnot,
// PDF 1.2
 

Previous topic: GetAnnotLink

Next topic: GetAscent, GetBarcodeDict