Basic Usage
Conversion Options
UseConvertOptions 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.Processing Modes
Lite cannot use
extras, word_bboxes, merge_cross_page, exact_transcription
or save_checkpoint. For example:
Output Formats
Conversion Result
TheConversionResult object contains the converted content and metadata:
Result Fields
Saving Output
Save the conversion result to files:document.md(or.html,.jsonbased on format)document_images/directory with extracted images (ifsave_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 dedicatedclient.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.