FieldAppearanceBuilder
Overview
FieldAppearanceBuilder is a class in Aspose.PDF FOSS for Java.
Builds Form-XObject {@code /AP/N} appearance streams for form fields (checkbox and radio-button options).
This class provides 4 methods for working with FieldAppearanceBuilder objects in Java programs.
Available methods include: buildCheckboxAppearance, buildRadioAppearance, installAppearance, isAppearanceIncomplete.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Methods
| Signature | Description |
|---|---|
buildCheckboxAppearance(rect: Rectangle, checked: boolean, style: BoxStyle) → COSStream | Builds a checkbox appearance Form-XObject for the given state and glyph. |
buildRadioAppearance(rect: Rectangle, selected: boolean, style: BoxStyle) → COSStream | Builds a radio-button appearance Form-XObject for the given state. |
installAppearance(widgetDict: COSDictionary, onStateStream: COSStream, onStateName: String, offStateStream: COSStream) | Installs the per-state appearance streams on a widget dictionary. |
isAppearanceIncomplete(widgetDict: COSDictionary) → boolean | Returns {@code true} if {@code /AP/N} on the given widget contains any |
| {@link COSNull} placeholder or is missing entirely. |