Package com.evopdf

# Class PdfFormButton

java.lang.Object
com.evopdf.PdfFormField
com.evopdf.PdfFormButton

public class PdfFormButton extends PdfFormField
Represents a button in a PDF form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PdfFormButton(RectangleFloat box, String text, PdfFont pdfFont)`
  Constructs text box form field

- ## Method Summary

  Modifier and Type
  Method
  Description
  `PdfFont`
  `font()`
  Gets the PDF form button text font
  `void`
  `setFont(PdfFont pdfFont)`
  Sets the PDF form button text font
  `void`
  `setText(String text)`
  Sets the PDF form button text
  `String`
  `text()`
  Gets the PDF form button text

  ### Methods inherited from class com.evopdf.PdfFormField

  `boundingRectangle, defaultValue, export, flatten, name, parentForm, readOnly, required, setAction, setBoundingRectangle, setDefaultValue, setExport, setFlatten, setName, setReadOnly, setRequired, setStyle, setToolTip, style, toolTip`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PdfFormButton

    public PdfFormButton(RectangleFloat box, String text, PdfFont pdfFont)
    Constructs text box form field
    Parameters:
      `box` - the button control bounding box
      `text` - the button text
      `pdfFont` - the button text font

- ## Method Details

  - ### text

    public String text()
    Gets the PDF form button text
    Returns:
      PDF form button text

  - ### setText

    public void setText(String text)
    Sets the PDF form button text
    Parameters:
      `text` - the PDF form button text to set

  - ### font

    public PdfFont font()
    Gets the PDF form button text font
    Returns:
      the PDF form button text font

  - ### setFont

    public void setFont(PdfFont pdfFont)
    Sets the PDF form button text font
    Parameters:
      `pdfFont` - the PDF form button text font to set