DocumentPage Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. DocumentPage
- com.
Implements
public final class DocumentPage
implements JsonSerializable<DocumentPage>
Content from a document page.
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: List of barcodes in the page. |
|
List<Document |
getFormulas()
Get the formulas property: List of mathematical formulas in the page. |
| Double |
getHeight()
Get the height property: Height of the page. |
|
List<Document |
getLines()
Get the lines property: List of lines in the page. |
| int |
getPageNumber()
Get the page |
|
List<Content |
getSpans()
Get the spans property: Span(s) associated with the page in the markdown content. |
| Double |
getWidth()
Get the width property: Width of the page. |
|
List<Document |
getWords()
Get the words property: List of words in 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]. Only if enableOcr is true.
Returns:
getBarcodes
public List<DocumentBarcode> getBarcodes()
Get the barcodes property: List of barcodes in the page. Only if enableBarcode and returnDetails are true.
Returns:
getFormulas
public List<DocumentFormula> getFormulas()
Get the formulas property: List of mathematical formulas in the page. Only if enableFormula and returnDetails are true.
Returns:
getHeight
public Double getHeight()
Get the height property: Height of the page.
Returns:
getLines
public List<DocumentLine> getLines()
Get the lines property: List of lines in the page. Only if enableOcr and returnDetails are true.
Returns:
getPageNumber
public int getPageNumber()
Get the pageNumber property: Page number (1-based).
Returns:
getSpans
public List<ContentSpan> getSpans()
Get the spans property: Span(s) associated with the page in the markdown content.
Returns:
getWidth
public Double getWidth()
Get the width property: Width of the page.
Returns:
getWords
public List<DocumentWord> getWords()
Get the words property: List of words in the page. Only if enableOcr and returnDetails are true.
Returns: