Skip to content
excelanoPublic

About

Convert documents to DocLang, Markdown, JSON or LaTeX with docling.rs, offline

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Duckling

Duckling converts documents into DocLang, Markdown, JSON, LaTeX, Typst, ODT, ODS, ODP, DOCX or XLSX, on your own machine, with nothing sent anywhere. Drop in Word, PowerPoint, Excel, PDF, HTML, EPUB, RTF, OpenDocument, Apple iWork, email, Visio and some forty other formats, choose what to convert to and where to put it, and press Convert. Scanned PDFs and images are read by layout and OCR models that ship inside the application, so there is nothing to download after installing.

The converter is docling.rs, the Rust port of IBM's Docling. Duckling is the window around it, and adds no conversion logic of its own.

Install

On Debian and Ubuntu, from the Excelano apt repository:

curl -fsSL https://excelano.com/apt/setup.sh | sudo sh && sudo apt install duckling

https://excelano.com/duckling/ is the product page for every platform.

Build

./packaging/fetch-models.sh     # once; about 230 MB of models
cargo build --release

A Rust toolchain and a C compiler build the application: the PDF pipeline links ONNX Runtime, which arrives as a prebuilt static library, and compiles oniguruma from source under the tokenizer docling.rs carries. Pages render in pure Rust. DESIGN.md §2 says what those dependencies cost and why they are taken.

On macOS the build is Apple silicon only: no prebuilt ONNX Runtime exists for an Intel Mac. cargo build --release --features intel-mac builds a copy with no runtime in it for such a machine, which converts everything but PDFs and images. packaging/macos/README.md has the details.

On Windows, fetch-models.sh runs under the Git Bash that Git for Windows installs, and the packaged application carries DLLs beside the executable that no other platform needs. packaging/windows/README.md says which and why.

Run

cargo run --release -- [FILE|FOLDER ...]

Files and folders given on the command line or picked with the buttons are queued. A folder contributes every file under it that docling.rs can read. Nothing is converted until Convert is pressed, so the format and destination chosen at that moment apply to the whole batch. Output goes beside each source file or into one folder, and an existing file is never overwritten: a second report.md becomes report (1).md. A DocLang archive carries a page image per page and the document's pictures, so Segler can show the page beside the text; bare DocLang gets its pictures in an assets/ folder beside the file.

Where things are

src/lib.rs is the job model and the conversion worker, with no knowledge of a window. src/main.rs is the window. packaging/ holds what turns a build into a package for each platform. DESIGN.md is where every decision and its reasoning live; CLAUDE.md is the short guide for a session working here.

Warning

Do NOT submit Duckling, or a copy of it under another name, to the Mac App Store. Apple's App Review Guideline 4.3 treats copies of other apps as spam, and a 4.3 finding can flag the developer account that submitted it, so that every app the account sends afterwards is flagged too. Build it for your own Mac and keep it there.

License

MIT, like docling.rs. The models Duckling ships are docling's, under their own licenses. packaging/fetch-models.sh fetches them from a dated release on this repository rather than from where each one came, because upstream publishes them to a tag it overwrites; that release's notes carry the origins and the attribution those licenses require. The licenses of everything compiled into the application, the Rust crates, ONNX Runtime, oniguruma and docling-pdf's Adobe data, and of the DirectML library the Windows package carries, are in THIRD-PARTY-NOTICES.txt, which every package carries beside it.

About

Convert documents to DocLang, Markdown, JSON or LaTeX with docling.rs, offline

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages