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

DynaPDF Manual - Page 609

Previous Page 608   Index   Next Page 610

Function Reference
Page 609 of 750
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.
SetAnnotSubject
Syntax:
LBOOL pdfSetAnnotSubject(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Annotation handle
const char* Value)
// The subject to be set
The function sets or changes the optional subject string of an annotation. The subject is defined since
PDF 1.5. The function adjusts the PDF version automatically if it is lower than PDF 1.5.
The annotation types atFileLink, atPageLink, atPopUp, and atWebLink do not support a subject
string. The function returns with an error when trying to set the subject on these annotation types.
 

Previous topic: SetAnnotQuadPoints

Next topic: SetBBox