Skip to main content

Basic Usage

Conversion Options

Use ConvertOptions to control the conversion:

All Options

Use save_checkpoint=True to save the parsed document state. Then call client.extract() or client.segment() with the returned checkpoint_id to run extraction or segmentation without re-parsing.

Processing Modes

Output Formats

Conversion Result

The ConversionResult object contains the converted content and metadata:

Result Fields

Saving Output

Save the conversion result to files:
This creates:
  • document.md (or .html, .json based on format)
  • document_images/ directory with extracted images (if save_images=True)

Async Usage

For high-throughput applications:

Polling Configuration

Control polling behavior for long-running conversions:

Special Features

Track Changes (Word Documents)

Extract tracked changes and comments from DOCX files:

Chart Understanding

Extract data from charts and graphs:

Block IDs for Citations

Add block IDs for tracking content back to source locations:

Structured Extraction

For structured data extraction, use the dedicated client.extract() method.

Next Steps

Structured Extraction Recipe

Extract structured data from documents using JSON schemas.

Batch Processing

Process multiple documents efficiently in parallel.

Form Filling SDK

Programmatically fill PDF and image forms with field data.

CLI Reference

Convert documents from the command line.