Skip to main content
A completed request can return success=False and error without raising an SDK exception. Check result.success before reading the output.SDK 0.6.0 and later downloads signed regional results automatically. Upgrade older SDKs or use the REST polling and download flow.

Basic Usage

Conversion Options

Use ConvertOptions to control the conversion:

All Options

Current ConvertOptions supports the fields above. For the full wire contract and mode restrictions, see the Convert API guide.
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

Lite cannot use extras, word_bboxes, merge_cross_page, exact_transcription or save_checkpoint. For example:

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

Extract tracked changes and comments from DOCX, PDF, and image 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.