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
Widget Annotation Class
Table of Contents
Introduction
A widget annotation represents the appearance of form fields in an interactive PDF form. It is represented by the SetaPDF_Core_Document_Page_Annotation_Widget
class.
Technically a widget annotation can be created with SetaPDF but its usage requires much more low level logic. You should only use this class from existing document instances.
This class doesn't offers functionalities to edit form field values!
You may check out the SetaPDF-FormFiller component for such task.
Methods
The classes implements getter and setter methods to access the individual annotation data:
getAction()
Get the action of the annotation.
getAppearanceCharacteristics()
Get the appearance characteristics object.
getHeight()
Get the height of the annotation.
getWidth()
Get the width of the annotation.
setAction()
Set the action of the annotation.