Class DocumentPage
java.lang.Object
com.azure.ai.documentintelligence.models.DocumentPage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DocumentPage>
public final class DocumentPage
extends Object
implements com.azure.json.JsonSerializable<DocumentPage>
Content and layout elements extracted from a page from the input.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentPage
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DocumentPage from the JsonReader.getAngle()
Get the angle property: The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].Get the barcodes property: Extracted barcodes from the page.Get the formulas property: Extracted formulas from the page.Get the height property: The height of the image/PDF in pixels/inches, respectively.getLines()
Get the lines property: Extracted lines from the page, potentially containing both textual and visual elements.int
Get the pageNumber property: 1-based page number in the input document.Get the selectionMarks property: Extracted selection marks from the page.getSpans()
Get the spans property: Location of the page in the reading order concatenated content.getUnit()
Get the unit property: The unit used by the width, height, and polygon properties.getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively.getWords()
Get the words property: Extracted words from the page.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getPageNumber
public int getPageNumber()Get the pageNumber property: 1-based page number in the input document.- Returns:
- the pageNumber value.
-
getAngle
Get the angle property: The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].- Returns:
- the angle value.
-
getWidth
Get the width property: The width of the image/PDF in pixels/inches, respectively.- Returns:
- the width value.
-
getHeight
Get the height property: The height of the image/PDF in pixels/inches, respectively.- Returns:
- the height value.
-
getUnit
Get the unit property: The unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is "inch".- Returns:
- the unit value.
-
getSpans
Get the spans property: Location of the page in the reading order concatenated content.- Returns:
- the spans value.
-
getWords
Get the words property: Extracted words from the page.- Returns:
- the words value.
-
getSelectionMarks
Get the selectionMarks property: Extracted selection marks from the page.- Returns:
- the selectionMarks value.
-
getLines
Get the lines property: Extracted lines from the page, potentially containing both textual and visual elements.- Returns:
- the lines value.
-
getBarcodes
Get the barcodes property: Extracted barcodes from the page.- Returns:
- the barcodes value.
-
getFormulas
Get the formulas property: Extracted formulas from the page.- Returns:
- the formulas value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DocumentPage>
- Throws:
IOException
-
fromJson
Reads an instance of DocumentPage from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of DocumentPage if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DocumentPage.
-