Package com.pdftools.toolbox.pdf.forms
Class Widget
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.forms.Widget
-
public class Widget extends NativeObject
A form field widget
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBoundingBox()
The location on the page (Getter)boolean
getHidden()
The widget's visibility (Getter)boolean
getNoPrint()
The widget's visibility when printing (Getter)-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getBoundingBox
public Rectangle getBoundingBox() throws CorruptException
The location on the page (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closedCorruptException
- if the PDF is corrupt
-
getHidden
public boolean getHidden()
The widget's visibility (Getter)
Iftrue
then the widget is present, but is invisible and not available for user interaction. Depending on thegetNoPrint()
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)
Iftrue
then the widget is not present in a print output of the document.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
-