FieldAppearanceBuilder

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

SignatureDescription
buildCheckboxAppearance(rect: Rectangle, checked: boolean, style: BoxStyle)COSStreamBuilds a checkbox appearance Form-XObject for the given state and glyph.
buildRadioAppearance(rect: Rectangle, selected: boolean, style: BoxStyle)COSStreamBuilds 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)booleanReturns {@code true} if {@code /AP/N} on the given widget contains any
{@link COSNull} placeholder or is missing entirely.

See Also