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.Python SDK 0.5.0 does not download signed regional results automatically. For EU requests, use the REST polling and download flow.

Basic Usage

Conversion Options

Use ConvertOptions to control the conversion:

All Options

Use the REST API for merge_cross_page, word_bboxes, and processing_location; these are not fields in ConvertOptions.
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

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.