Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetAnnotOpenState

Sets the open state of a markup or PopUp annotation.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 5.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetAnnotOpenState"; PDF; AnnotationHandle; State )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
AnnotationHandle The annotation index. 5
State The new state. Can be 0 (closed) or 1 (open) 1.

Result

Returns OK or error.

Description

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.

See also SetAnnotOpenState function in DynaPDF manual.

See also

This function checks for a license.

Created 25th November 2014, last changed 25th November 2014


DynaPDF.SetAnnotOpacity - DynaPDF.SetAnnotString