Index
- Installation
- Getting Started
- Memory Usage
- Readers and Writers
- The Document Class
- Metadata
- Pages
- Canvas
- Page Layout and Mode
- Viewer Preferences
- Document Outline
- Page Labels
- Actions
- Destinations
- Annotations
- Embedded File Streams
- Colors and Color Spaces
- Page Formats and Boundaries
- Standard and Public Key Encryption
- Fonts and Encodings
- Corrupted Documents
- Reader Enabled Documents
- Refactor Old SetaPDF Code
- API Reference
Text Annotation Class
Table of Contents
Introduction
A text annotation represents a "sticky note" attached to a point on a page. It shall appear as an icon and additionally a popup when it is opened. It implements the markup annotation.
Methods
The class implements getter and setter methods to access text annotation data:
getIconName()
Get the icon name of the annotation.
getState()
Get the annotation state.
getStateModel()
Get the state model.
isOpen()
Checks if the annotation shall initially be displayed open.
setIconName()
Set the name of the icon that shall be used in displaying the annotation.
setOpen()
Sets whether the annotation shall initially be displayed open or not.
setState()
Set the annotation state.
setStateModel()
Set the annotation model.