com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextBoxField

    • Constructor Detail

      • TextBoxField

        public TextBoxField(IDocument doc)

        Constructor which should be used with Generator.

        Parameters:
        doc - Document where field will be created.
      • TextBoxField

        public TextBoxField()

        Create instance of TextBoxField.

      • TextBoxField

        public TextBoxField(Page page,
                            Rectangle rect)

        Constructor of TextBox field.

        Parameters:
        page - Page where text field is placed.
        rect - Rectangle where the text field will be placed on the page.
      • TextBoxField

        public TextBoxField(IDocument doc,
                            Rectangle rect)

        Constructor of TextBox field.

        Parameters:
        doc - Document where field will be created.
        rect - Rectangle of the field.
    • Method Detail

      • getMultiline

        public boolean getMultiline()

        Gets multiline flag of the field. If Multiline is true field can contain multiple lines of text.

        Returns:
        boolean value
      • setMultiline

        public void setMultiline(boolean value)

        Sets multiline flag of the field. If Multiline is true field can contain multiple lines of text.

        Parameters:
        value - boolean value
      • getSpellCheck

        public boolean getSpellCheck()

        Gets spellcheck flag for field. If true field shall be spell checked.

        Returns:
        boolean value
      • setSpellCheck

        public void setSpellCheck(boolean value)

        Sets spellcheck flag for field. If true field shall be spell checked.

        Parameters:
        value - boolean value
      • getScrollable

        public boolean getScrollable()

        Gets scrollable flag of field. If true field can be scrolled.

        Returns:
        boolean value
      • setScrollable

        public void setScrollable(boolean value)

        Sets scrollable flag of field. If true field can be scrolled.

        Parameters:
        value - boolean value
      • getForceCombs

        public boolean getForceCombs()

        Gets flag which indicates is field divided into spaced positions.

        Returns:
        boolean value
      • setForceCombs

        public void setForceCombs(boolean value)

        Sets flag which indicates is field divided into spaced positions.

        Parameters:
        value - boolean value
      • getMaxLen

        public int getMaxLen()

        Gets maximum length of text in the field.

        Returns:
        int value
      • setMaxLen

        public void setMaxLen(int value)

        Sets maximum length of text in the field.

        Parameters:
        value - int value
      • getValue

        public String getValue()

        Gets value of the field.

        Overrides:
        getValue in class Field
        Returns:
        String value
      • setValue

        public void setValue(String value)

        Sets value of the field.

        Overrides:
        setValue in class Field
        Parameters:
        value - String value
      • addImage

        public void addImage(BufferedImage image)

        Adds image into the field resources an draws it.

        Parameters:
        image - Image to add into text field.
      • addBarcode

        public void addBarcode(String code)

        Adds barcode 128 into the field. Field value will be changed onto the code and field become read only.

        Parameters:
        code - The text to generate barcode 128.
      • setJustification

        public void setJustification(boolean value)

        Sets justification

        Parameters:
        value - boolean value