FormPage Class
- java.
lang. Object - com.
azure. ai. formrecognizer. models. FormPage
- com.
public final class FormPage
Represents a page recognized from the input document. Contains lines, words, tables, selection marks, and page metadata.
Constructor Summary
Constructor | Description |
---|---|
FormPage(float height, float textAngle, LengthUnit unit, float width, List<FormLine> lines, List<FormTable> tables, int pageNumber) |
Constructs a Form |
Method Summary
Modifier and Type | Method and Description |
---|---|
float |
getHeight()
Get the height property: The height of the image/PDF in pixels/inches, respectively. |
List<Form |
getLines()
Get the lines property: When include |
Integer |
getPageNumber()
Get the 1-based page number in the input document. |
List<Form |
getSelectionMarks()
Get the selection marks in the input document. |
List<Form |
getTables()
Get the tables property: List of data tables extracted from the page. |
float |
getTextAngle()
Get the text angle property. |
Length |
getUnit()
Get the unit property: The unit used by the width, height and bounding |
float |
getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively. |
Methods inherited from java.lang.Object
Constructor Details
FormPage
public FormPage(float height, float textAngle, LengthUnit unit, float width, List
Constructs a FormPage object.
Parameters:
Method Details
getHeight
public float getHeight()
Get the height property: The height of the image/PDF in pixels/inches, respectively.
Returns:
getLines
public List
Get the lines property: When includeFieldElements is set to true, a list of recognized text lines.
Returns:
getPageNumber
public Integer getPageNumber()
Get the 1-based page number in the input document.
Returns:
getSelectionMarks
public List
Get the selection marks in the input document.
Returns:
getTables
public List
Get the tables property: List of data tables extracted from the page.
Returns:
getTextAngle
public float getTextAngle()
Get the text angle property.
Returns:
getUnit
public LengthUnit getUnit()
Get the unit property: The unit used by the width, height and boundingBox properties. For images, the unit is "pixel". For PDF, the unit is "inch".
Returns:
getWidth
public float getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively.
Returns:
Applies to
Azure SDK for Java