Skip to content

docling-project/docling-java

Welcome to the Docling Java Project!

This is repository for Docling Java, a Java API for using Docling.

Docs docling-api version License MIT Discord OpenSSF Best Practices

Docling simplifies document processing, parsing diverse formats — including advanced PDF understanding — and providing seamless integrations with the gen AI ecosystem.

Features

  • 🗂️ Parsing of multiple document formats incl. PDF, DOCX, PPTX, XLSX, HTML, WAV, MP3, VTT, images (PNG, TIFF, JPEG, ...), and more
  • 📑 Advanced PDF understanding incl. page layout, reading order, table structure, code, formulas, image classification, and more
  • 🧬 Unified, expressive DoclingDocument representation format
  • ↪️ Various export formats and options, including Markdown, HTML, DocTags and lossless JSON
  • 🔒 Local execution capabilities for sensitive data and air-gapped environments
  • 🤖 Plug-and-play integrations including LangChain4j
  • 🔍 Extensive OCR support for scanned PDFs and images
  • 👓 Support of several Visual Language Models (GraniteDocling)
  • 🎙️ Audio support with Automatic Speech Recognition (ASR) models

Artifacts

This project aims to provide the following artifacts:

Getting started

Use DoclingApi.convertSource() to convert individual documents. For example:

import ai.docling.api.DoclingApi;
import ai.docling.api.convert.request.ConvertDocumentRequest;
import ai.docling.api.convert.response.ConvertDocumentResponse;
import ai.docling.client.DoclingClient;

DoclingApi doclingApi = DoclingClient.builder()
    .baseUrl("<location of docling server>")
    .build();

ConvertDocumentRequest request = ConvertDocumentRequest.builder()
    .addHttpSources(URI.create("https://arxiv.org/pdf/2408.09869"))
    .build();

ConvertDocumentResponse response = doclingApi.convertSource(request);
System.out.println(response.document().markdownContent());

More usage information are available in the docs.

Get help and support

Please feel free to connect with us using the discussion section.

Contributing

Please read Contributing to Docling Java for details.

License

The Docling codebase is under MIT license. For individual model usage, please refer to the model licenses found in the original packages.

IBM ❤️ Open Source AI

The project was started by the AI for knowledge team at IBM Research Zurich.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Eric Deandrea
Eric Deandrea

💻 🖋 📖 🤔 🚇 🚧 📆 ⚠️
Thomas Vitale
Thomas Vitale

💻 🖋 📖 🤔 🚇 🚧 📆 ⚠️ 👀
Alex Soto
Alex Soto

🤔 📆

This project follows the all-contributors specification. Contributions of any kind welcome!

IBM ❤️ Open Source AI

About

A Java API for Docling

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors 5

Languages