Class ExportDocumentResponse
java.lang.Object
ai.docling.serve.api.chunk.response.ExportDocumentResponse
Content of the original converted document, before getting chunked.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creatingExportDocumentResponseinstances. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull ExportDocumentResponse.Builderbuilder()@Nullable StringThe document content in DocTags format.The name of the original document file.@Nullable StringThe document content exported in HTML format.@Nullable ai.docling.core.DoclingDocumentThe document content as a structured DoclingDocument JSON object.@Nullable StringThe document content exported in Markdown format.@Nullable StringThe document content as plain text.@NonNull ExportDocumentResponse.Builder@NonNull StringtoString()
-
Method Details
-
builder
-
toBuilder
-
getFilename
The name of the original document file.- Returns:
- the filename
-
getMarkdownContent
The document content exported in Markdown format. Present if Markdown output was requested in the conversion options.- Returns:
- the Markdown content, or null if not requested
-
getJsonContent
public @Nullable ai.docling.core.DoclingDocument getJsonContent()The document content as a structured DoclingDocument JSON object. Present if JSON output was requested in the conversion options.- Returns:
- the JSON content, or null if not requested
-
getHtmlContent
The document content exported in HTML format. Present if HTML output was requested in the conversion options.- Returns:
- the HTML content, or null if not requested
-
getTextContent
The document content as plain text. Present if text output was requested in the conversion options.- Returns:
- the text content, or null if not requested
-
getDoctagsContent
The document content in DocTags format. Present if DocTags output was requested in the conversion options.- Returns:
- the DocTags content, or null if not requested
-
toString
-