Class FormPage
java.lang.Object
com.azure.ai.formrecognizer.models.FormPage
Represents a page recognized from the input document. Contains lines, words, tables,
selection marks, and page metadata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the height property: The height of the image/PDF in pixels/inches, respectively.getLines()
Get the lines property: When includeFieldElements is set to true, a list of recognized text lines.Get the 1-based page number in the input document.Get the selection marks in the input document.Get the tables property: List of data tables extracted from the page.float
Get the text angle property.getUnit()
Get the unit property: The unit used by the width, height and boundingBox properties.float
getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively.
-
Constructor Details
-
FormPage
public FormPage(float height, float textAngle, LengthUnit unit, float width, List<FormLine> lines, List<FormTable> tables, int pageNumber) Constructs a FormPage object.- Parameters:
height
- The height of the image/PDF in pixels/inches, respectively.textAngle
- The general orientation of the text in clockwise direction.unit
- The unit used by the width, height and boundingBox properties.width
- The width of the image/PDF in pixels/inches, respectively.lines
- When includeFieldElements is set to true, a list of recognized text lines.tables
- List of data tables extracted from the page.pageNumber
- the 1-based page number in the input document.
-
-
Method Details
-
getHeight
public float getHeight()Get the height property: The height of the image/PDF in pixels/inches, respectively.- Returns:
- the height value.
-
getLines
Get the lines property: When includeFieldElements is set to true, a list of recognized text lines.- Returns:
- the unmodifiable list of recognized lines.
-
getTables
Get the tables property: List of data tables extracted from the page.- Returns:
- the unmodifiable list of recognized tables.
-
getTextAngle
public float getTextAngle()Get the text angle property.- Returns:
- the text angle value.
-
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:
- the unit value.
-
getWidth
public float getWidth()Get the width property: The width of the image/PDF in pixels/inches, respectively.- Returns:
- the width value.
-
getPageNumber
Get the 1-based page number in the input document.- Returns:
- the page number value.
-
getSelectionMarks
Get the selection marks in the input document.- Returns:
- the selection marks.
-