Class ExportDocumentResponse

java.lang.Object
ai.docling.serve.api.chunk.response.ExportDocumentResponse

public class ExportDocumentResponse extends Object
Content of the original converted document, before getting chunked.
  • Method Details

    • builder

      public static @NonNull ExportDocumentResponse.Builder builder()
    • toBuilder

      public @NonNull ExportDocumentResponse.Builder toBuilder()
    • getFilename

      public String getFilename()
      The name of the original document file.
      Returns:
      the filename
    • getMarkdownContent

      public @Nullable String 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

      public @Nullable String 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

      public @Nullable String 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

      public @Nullable String 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

      public @NonNull String toString()
      Overrides:
      toString in class Object