DynaPDF Manual - Page 642

Previous Page 641   Index   Next Page 643

Function Reference
Page 642 of 787
The functions sets or changes the quad points defintion 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
the contents of an annotation. Note also that DynaPDF does not use the rich text to create the
appearance stream. However, the rich text should still coincide with the annotations content.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
 

Previous topic: SetAnnotOrFieldDate, SetAnnotQuadPoints

Next topic: SetAnnotSubject, SetBBox

Start Chat