Overview
ConversionResult is returned by all DocumentConverter conversion methods. It extends ConversionAssets and contains the converted DoclingDocument along with metadata about the conversion process, including status, errors, timing information, and page-level data.
Class Definition
Inheritance
ConversionResult extends ConversionAssets and inherits all its attributes and methods.
Attributes
Core Attributes
The converted Docling document. This is the primary output of the conversion process.
The input document metadata, including file path, format, and validation status.
The status of the conversion. Possible values:
ConversionStatus.SUCCESS- Conversion completed successfullyConversionStatus.PARTIAL_SUCCESS- Conversion completed with some issuesConversionStatus.FAILURE- Conversion failedConversionStatus.PENDING- Conversion not yet startedConversionStatus.SKIPPED- Document was skipped
List of errors that occurred during conversion. Each
ErrorItem contains:component_type: The component where the error occurredmodule_name: The module that raised the errorerror_message: Description of the error
Metadata Attributes
List of page-level metadata for paginated documents. Each
Page contains information about dimensions, page number, and page-specific content.Timing information for different stages of the conversion process.
Confidence scores for various aspects of the conversion.
Information about how the document was assembled from its components.
Version information about Docling and its dependencies used for the conversion.
ISO timestamp when the conversion assets were saved.
Methods
save()
Serialize the full ConversionResult to a compressed ZIP archive.
Path where the ZIP archive will be saved.
Number of spaces for JSON indentation. Use
None for compact output.document.json- The DoclingDocumentversion.json- Version informationstatus.json- Conversion statuserrors.json- Error listpages.json- Page metadatatimings.json- Performance timingsconfidence.json- Confidence scorestimestamp.json- Save timestamp
load()
Load a ConversionResult from a saved ZIP archive.
Path to the ZIP archive to load.
The loaded ConversionResult instance.
Usage Examples
Basic Conversion
Accessing the Document
Error Handling
Saving and Loading Results
Batch Processing with Results
Accessing Timing Information
Page-Level Information
See Also
- DocumentConverter - Main class for document conversion
- DoclingDocument - The document object structure