DynaPDF Manual - Page 686

Previous Page 685   Index   Next Page 687

Function Reference
Page 686 of 839
SetAnnotQuadPoints
Syntax:
LBOOL pdfSetAnnotQuadPoints(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Annotation handle
struct TFltPoint* Value, // Array of 4 x n points
UI32 Count)
// Number of points
The function sets or changes the quad points definition of a Highlight, Link, Redakt, Squiggly,
StrikeOut, or Underline annotation. The function must be called within an open page.
Independent of the used coordinate system (bottom up or top down), the points must be defined in
the following order:
x2,y2
x1,y1
x4,y4
x3,y3
The coordinates of the vertices are interpreted in current user space. Any transformation that was
applied on the coordinate system will be taken into account.
The number of points must be 4 or a multiple of 4.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetAnnotString
Syntax:
LBOOL pdfSetAnnotString(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Annotation handle
TAnnotString StringType, // String type that should be changed
const char* Value)
// The new value or NULL to delete it
typedef enum
{
asAuthor,
asContent,
asName,
asSubject,
asRichStyle, // Default style string. -> FreeText annotations only.
asRichText
// Rich text string. -> Supported by markup annotations.
}TAnnotString;
The function sets, changes, or deletes a string of an annotation. The string RichText or RichStyle must
be set after the annotation content was changed because these strings will be deleted when changing
 

Previous topic: SetAnnotOpenState, SetAnnotOrFieldDate

Next topic: SetAnnotSubject, SetBBox