Class Widget


  • public class Widget
    extends NativeObject

    A form field widget

    • Method Detail

      • getBoundingBox

        public Rectangle getBoundingBox()
                                 throws CorruptException

        The location on the page (Getter)

        Throws:
        java.lang.IllegalStateException - if the object has already been closed
        CorruptException - if the PDF is corrupt
      • getHidden

        public boolean getHidden()

        The widget's visibility (Getter)

        If true then the widget is present, but is invisible and not available for user interaction. Depending on the getNoPrint() property it will, however, still be visible when printing.
        Throws:
        java.lang.IllegalStateException - if the object has already been closed
      • getNoPrint

        public boolean getNoPrint()

        The widget's visibility when printing (Getter)

        If true then the widget is not present in a print output of the document.
        Throws:
        java.lang.IllegalStateException - if the object has already been closed