public class TemplateField extends TemplateItem
Text fields are defined by its position on the page. There are three ways to define a text field:
TemplateFixedPositionTemplateRegexPositionTemplateLinkedPosition| 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 with the UPPER CASE name. |
TemplateField(TemplatePosition position,
String name,
Integer pageIndex,
boolean useUpperCaseName)
Initializes a new instance of the
TemplateField class. |
TemplateField(TemplatePosition position,
String name,
Integer pageIndex,
Double pageWidth)
Initializes a new instance of the
TemplateField class with the UPPER CASE name. |
TemplateField(TemplatePosition position,
String name,
Integer pageIndex,
Double pageWidth,
boolean useUpperCaseName)
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.
|
TemplateItem |
scale(double factor)
Creates a copy of the current item with all coordinates scaled by the given factor.
|
getName, getPageIndex, getPageWidth, getUseUpperCaseNamepublic 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 with the UPPER CASE name.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 TemplateField(TemplatePosition position, String name, Integer pageIndex, Double pageWidth)
TemplateField class with the UPPER CASE name.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.pageWidth - The width of the page that was used to create the template item.public TemplateField(TemplatePosition position, String name, Integer pageIndex, boolean useUpperCaseName)
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.useUpperCaseName - The value that indicates whether a name is converted to UPPER CASE.public TemplateField(TemplatePosition position, String name, Integer pageIndex, Double pageWidth, boolean useUpperCaseName)
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.pageWidth - The width of the page that was used to create the template item.useUpperCaseName - The value that indicates whether a name is converted to UPPER CASE.public TemplatePosition getPosition()
TemplatePosition descendant class.public TemplateItem scale(double factor)
TemplateItemscale in class TemplateItemfactor - The scaling factor.TemplateItem with scaled coordinates.Copyright © 2026. All rights reserved.