DocumentContent Class
- java.
lang. Object - com.
azure. ai. contentunderstanding. models. AnalysisContent - com.
azure. ai. contentunderstanding. models. DocumentContent
- com.
- com.
public final class DocumentContent
extends AnalysisContent
Document content. Ex. text/plain, application/pdf, image/jpeg.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
|
List<Document |
getAnnotations()
Get the annotations property: List of annotations in the document. |
| int |
getEndPageNumber()
Get the end |
|
List<Document |
getFigures()
Get the figures property: List of figures in the document. |
|
List<Document |
getHyperlinks()
Get the hyperlinks property: List of hyperlinks in the document. |
|
Analysis |
getKind()
Get the kind property: Content kind. |
|
List<Document |
getPages()
Get the pages property: List of pages in the document. |
|
List<Document |
getParagraphs()
Get the paragraphs property: List of paragraphs in the document. |
|
List<Document |
getSections()
Get the sections property: List of sections in the document. |
|
List<Document |
getSegments()
Get the segments property: List of detected content segments. |
| int |
getStartPageNumber()
Get the start |
|
List<Document |
getTables()
Get the tables property: List of tables in the document. |
|
Length |
getUnit()
Get the unit property: Length unit used by the width, height, and source properties. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from AnalysisContent
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentContent fromJson(JsonReader jsonReader)
Reads an instance of DocumentContent from the JsonReader.
Parameters:
Returns:
Throws:
getAnnotations
public List<DocumentAnnotation> getAnnotations()
Get the annotations property: List of annotations in the document. Only if enableAnnotations and returnDetails are true.
Returns:
getEndPageNumber
public int getEndPageNumber()
Get the endPageNumber property: End page number (1-indexed) of the content.
Returns:
getFigures
public List<DocumentFigure> getFigures()
Get the figures property: List of figures in the document. Only if enableLayout and returnDetails are true.
Returns:
getHyperlinks
public List<DocumentHyperlink> getHyperlinks()
Get the hyperlinks property: List of hyperlinks in the document. Only if returnDetails are true.
Returns:
getKind
public AnalysisContentKind getKind()
Get the kind property: Content kind.
Overrides:
DocumentContent.getKind()Returns:
getPages
public List<DocumentPage> getPages()
Get the pages property: List of pages in the document.
Returns:
getParagraphs
public List<DocumentParagraph> getParagraphs()
Get the paragraphs property: List of paragraphs in the document. Only if enableOcr and returnDetails are true.
Returns:
getSections
public List<DocumentSection> getSections()
Get the sections property: List of sections in the document. Only if enableLayout and returnDetails are true.
Returns:
getSegments
public List<DocumentContentSegment> getSegments()
Get the segments property: List of detected content segments. Only if enableSegment is true.
Returns:
getStartPageNumber
public int getStartPageNumber()
Get the startPageNumber property: Start page number (1-indexed) of the content.
Returns:
getTables
public List<DocumentTable> getTables()
Get the tables property: List of tables in the document. Only if enableLayout and returnDetails are true.
Returns:
getUnit
public LengthUnit getUnit()
Get the unit property: Length unit used by the width, height, and source properties. For images/tiff, the default unit is pixel. For PDF, the default unit is inch.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DocumentContent.toJson(JsonWriter jsonWriter)Parameters:
Throws: