public class TemplateField extends TemplateItem
Text fields are defined by its position on the page. There are three ways to define a text field:
TemplateFixedPosition
TemplateRegexPosition
TemplateLinkedPosition
Constructor and Description |
---|
TemplateField(TemplatePosition position,
String name)
Initializes a new instance of the
TemplateField class. |
TemplateField(TemplatePosition position,
String name,
Integer pageIndex)
Initializes a new instance of the
TemplateField class. |
Modifier and Type | Method and Description |
---|---|
TemplatePosition |
getPosition()
Gets the value that describes how to find the template field on the document page.
|
getName, getPageIndex
public TemplateField(TemplatePosition position, String name)
TemplateField
class.position
- The field position.name
- The field name.public TemplateField(TemplatePosition position, String name, Integer pageIndex)
TemplateField
class.position
- The field position.name
- The field name.pageIndex
- An integer value that represents the index of the page where the template item is located; null
if the template item is located on any page.public TemplatePosition getPosition()
TemplatePosition
descendant class.