Skip to main content

Conversion modes

The mode parameter controls the balance between speed and fidelity.

fast

Recommended default for most documents and AI-agent pipelines.

balanced

Better structure for irregular layouts, tables and mixed document content.

quality

Slower best-effort mode for difficult documents where structure matters more than speed.

auto

Starts fast and uses a stronger path only when the first result is too lean.

When to use each

Non-PDF formats

For CSV, TXT, DOCX, XLSX, PPTX and HTML, mode usually has little effect. Each format follows the best available conversion path for that file type.

Cleaning

Regardless of mode, clean=true by default normalizes Markdown, collapses excess line breaks, removes control lines and reduces repeated headers.