DynaPDF Manual - Page 641

Previous Page 640   Index   Next Page 642

Function Reference
Page 641 of 787
The function sets the open state of a markup or PopUp annotation. Markup annotations can be
connected with a PopUp annotation that displays additional comments in a window (like a Text
annotation). The open state can only be changed if the base annotation is connected with a PopUp
annotation. If the base annotation contains no PopUp annotation or if the handle refers to a non-
markup annotation the function does nothing.
All annotation types with exception of 3D, Link, Movie, Screen, PrinterMark, TrapNet, and
Watermark are markup annotations.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetAnnotOrFieldDate
Syntax:
LBOOL pdfSetAnnotOrFieldDate(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Annotation or field handle
LBOOL IsField,
// If true, Handle is a field handle
TDateType Type,
// See below
UI32 DateTime)
// Number of seconds elapsed since January 1, 1970
typedef enum
{
dtCreationDate, // Markup annotations only
dtModDate
// Annotations or form fields
}TDateType;
The function sets or changes the creation or modification date of an annotation or form field. If the
parameter IsField is set to true, a valid field handle must be passed to the parameter Handle. An
annotation handle is expected otherwise.
Annotations and form fields support a modification date but a creation date is supported by
markup annotations only.
The function GetAnnotEx() or GetPageAnnotEx() can be used to determine whether an annotation is
a markup annotation.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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
 

Previous topic: SetAnnotOpacity, SetAnnotOpenState

Next topic: SetAnnotString

Start Chat