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 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