[Improvement] Map the remaining ConvertDocumentsOptions properties (per-stage presets/custom configs, chart extraction, page images)
Description
ConvertDocumentOptions models 30 of the 51 properties that Docling Serve v1.35.0 exposes on ConvertDocumentsOptions. The 21 unmapped ones are mostly one coherent family — the per-stage *_preset / *_custom_config pairs — plus a few standalone flags.
Verified against main (docling-serve/docling-serve-api/.../ConvertDocumentOptions.java), not just the 0.7.2 release, by diffing its @JsonProperty names against /openapi.json from a running ghcr.io/docling-project/docling-serve:v1.35.0. Nothing is mapped that the server doesn't declare, so the gap is one-directional.
Unmapped properties
Per-stage preset / custom-config pairs (each is preset: string + custom_config: object, where custom_config's kind field selects the implementation and overrides the preset):
| stage | preset | custom config |
|---|---|---|
| layout | layout_preset |
layout_custom_config |
| OCR | ocr_preset |
ocr_custom_config |
| table structure | table_structure_preset |
table_structure_custom_config |
| picture description | picture_description_preset |
picture_description_custom_config |
| picture classification | picture_classification_preset |
picture_classification_custom_config |
| code & formula | code_formula_preset |
code_formula_custom_config |
| chart extraction | chart_extraction_preset |
chart_extraction_custom_config |
| VLM pipeline | vlm_pipeline_preset |
vlm_pipeline_custom_config |
Examples from the schema: layout_preset → "default", "docling_layout_default"; ocr_preset → "auto" (default), "easyocr", "tesseract".
Standalone flags (all boolean, all default false):
do_chart_extraction— extract numeric data from chartsinclude_page_images— generate and include full-page imagesmd_compact_tables— unpadded markdown tables, better for large tables and downstream processing
Chunking, which may be deliberate:
chunking_preset— e.g."granite_embedding_278m","minilm_l6","hierarchical". Mutually exclusive withchunking_options.chunking_options— aoneOfoverHybridChunkerOptions/HierarchicalChunkerOptions, discriminated onchunker.
I've listed these two for completeness, but they may be an intentional omission: docling-java models chunking on ChunkDocumentRequest (chunking_options) rather than on the convert options, so mapping them here might be redundant or actively confusing. Happy to drop them from scope.
Why this matters
ocr_preset and layout_preset are the ergonomic entry points for tuning conversion quality — today a Java caller has to reach past docling-java to set them. do_chart_extraction is the one with no workaround at all: numeric chart data is otherwise unreachable, and chart/figure text is exactly the content that structure-aware chunkers tend to drop.
How this was found
While auditing a LangChain4j RAG demo after picking up docling-serve-api 0.7.2 (via quarkus-docling 1.5.2) to adopt HeadingHierarchyOptions from #754 — which works well: on an arXiv paper it moved 20 of 74 hybrid chunks from a flat heading to a real parent path ([Learning Curve] → [5 EXPERIMENTS, Learning Curve]), with conversion time unchanged.
One incidental note from that work: HeadingHierarchyOptions#getUseStyle()'s javadoc says the style fallback "Requires generate_parsed_pages=True in the pipeline options." That property isn't part of Docling Serve v1.35.0's ConvertDocumentsOptions schema, and the style fallback demonstrably works without it, so the sentence may mislead Java users into hunting for a setter that shouldn't exist.