DynaPDF Manual - Page 668

Previous Page 667   Index   Next Page 669

Function Reference
Page 668 of 818
SetAnnotOpenState
LBOOL pdfSetAnnotOpenState(
const PPDF* IPDF, // Instance pointer
UI32 Handle,
// Markup or PopUp annotation handle
LBOOL Open)
// New state
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.
 

Previous topic: SetAnnotOpacity

Next topic: SetAnnotQuadPoints, SetAnnotString


Start Chat