DocumentPage Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentPage
- com.
Implements
public final class DocumentPage
implements JsonSerializable<DocumentPage>
Content and layout elements extracted from a page from the input.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
Double |
getAngle()
Get the angle property: The general orientation of the content in clockwise direction, measured in degrees between (-180, 180]. |
List<Document |
getBarcodes()
Get the barcodes property: Extracted barcodes from the page. |
List<Document |
getFormulas()
Get the formulas property: Extracted formulas from the page. |
Double |
getHeight()
Get the height property: The height of the image/PDF in pixels/inches, respectively. |
List<Document |
getLines()
Get the lines property: Extracted lines from the page, potentially containing both textual and visual elements. |
int |
getPageNumber()
Get the page |
List<Document |
getSelectionMarks()
Get the selection |
List<Document |
getSpans()
Get the spans property: Location of the page in the reading order concatenated content. |
Length |
getUnit()
Get the unit property: The unit used by the width, height, and polygon properties. |
Double |
getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively. |
List<Document |
getWords()
Get the words property: Extracted words from the page. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentPage fromJson(JsonReader jsonReader)
Reads an instance of DocumentPage from the JsonReader.
Parameters:
Returns:
Throws:
getAngle
public Double getAngle()
Get the angle property: The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].
Returns:
getBarcodes
public List
Get the barcodes property: Extracted barcodes from the page.
Returns:
getFormulas
public List
Get the formulas property: Extracted formulas from the page.
Returns:
getHeight
public Double getHeight()
Get the height property: The height of the image/PDF in pixels/inches, respectively.
Returns:
getLines
public List
Get the lines property: Extracted lines from the page, potentially containing both textual and visual elements.
Returns:
getPageNumber
public int getPageNumber()
Get the pageNumber property: 1-based page number in the input document.
Returns:
getSelectionMarks
public List
Get the selectionMarks property: Extracted selection marks from the page.
Returns:
getSpans
public List
Get the spans property: Location of the page in the reading order concatenated content.
Returns:
getUnit
public LengthUnit 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:
getWidth
public Double getWidth()
Get the width property: The width of the image/PDF in pixels/inches, respectively.
Returns:
getWords
public List
Get the words property: Extracted words from the page.
Returns:
toJson
Applies to
Azure SDK for Java