Class AppearanceGeneratorHelper

java.lang.Object
org.sejda.sambox.pdmodel.interactive.form.AppearanceGeneratorHelper

public class AppearanceGeneratorHelper extends Object
Create the AcroForms field appearance helper.
Author:
Stephan Gerhard, Ben Litchfield
  • Constructor Details

    • AppearanceGeneratorHelper

      public AppearanceGeneratorHelper(PDVariableText field) throws IOException
      Constructs a COSAppearance from the given field.
      Parameters:
      field - the field which you wish to control the appearance of
      Throws:
      IOException
  • Method Details

    • setAppearanceValue

      public void setAppearanceValue(String apValue) throws IOException
      This is the public method for setting the appearance stream.
      Parameters:
      apValue - the String value which the appearance should represent
      Throws:
      IOException - If there is an error creating the stream.