Skip to main content
DoclingTools enable an Agent to convert documents from multiple input formats (PDF, DOCX, PPTX, XLSX, HTML, images, audio, video, etc.) into output formats like Markdown, JSON, YAML, HTML, DocTags, and more using the Docling library.

Prerequisites

The following example requires the docling library.
ffmpeg is also required for audio/video processing:
  • macOS: brew install ffmpeg
  • Ubuntu: sudo apt-get install ffmpeg
  • Windows: Download from ffmpeg.org

Example

The following agent converts a PDF to Markdown:

OCR Configuration

Configure OCR settings for scanned PDFs or documents with embedded images.
cookbook/91_tools/docling_tools/ocr_example.py

Toolkit Params

Toolkit Functions

Developer Resources