Open-source document processing

DocYantra: the engine behind DocKosha

Open-source Rust and WebAssembly packages for supported PDF and Office workflows, in Cloud or on your own infrastructure. Unsupported processing fails closed.

Built for speed, fidelity, and fail-closed governance

DocYantra is the open-source processing engine behind DocKosha's validated Office and PDF path, licensed under AGPL-3.0-or-later. Work outside its documented envelope fails closed instead of degrading quietly.

Rust processing inside your application

DocYantra provides the same supported document-processing path in DocKosha Cloud and self-hosted builds. Its packages run inside the application; no separate conversion service is required.

  • The DocYantra validated path does not use a headless office suite or browser in the path
  • DocYantra uses isolated worker threads with finite deadlines and bounded queues
  • DocYantra validates output before it reaches the viewer

Multilingual, high-fidelity output

DocYantra can produce validated PDFs with compact glyph-subset fonts embedded, and resolve fonts on demand for math, symbol, and CJK coverage in supported Office documents.

  • DOCX, PPTX, XLSX, and XLSM conversion to PDF, plus CSV and Markdown rendering
  • Chinese, Japanese, and Korean text renders through pan-CJK Noto fonts
  • PDF merge, watermarking, and redaction through the DocYantra processing path

Fail-closed governance

DocYantra is built for controlled sharing where unvalidated output is not acceptable — anything outside the validated envelope fails closed with typed, stable error codes.

  • No silent quality loss and no tofu or placeholder glyphs
  • Converted assets are published only after output validation
  • The original remains available when preview conversion fails

Built for controlled sharing

  • Validated, deterministic DocYantra PDF output feeds DocKosha viewing, watermarking, redaction, and analytics.
  • DocYantra worker isolation keeps heavy document operations bounded by finite deadlines.
  • DocYantra’s compact glyph-subset fonts keep viewer PDFs lean without sacrificing fidelity.

Clear format boundaries

  • The DocYantra path converts modern DOCX, PPTX, XLSX, and XLSM files to PDF and renders CSV and Markdown.
  • Legacy .doc, .ppt, and .xls files and unsupported document features are rejected with typed errors.
  • CJK text in supported Office documents is supported; vertical text layout is not and fails closed.

How DocYantra works

01

Validate the file

DocKosha checks the format, size, and processing envelope before any document work begins.

02

Convert in an isolated worker

The DocYantra worker converts the document within a finite deadline; unsupported work returns a typed failure.

03

Publish validated output

Only a validated PDF becomes the viewer asset; failed conversions fail closed and leave the original available.

Open code. A managed way to use it.

Inspect the engine or embed its versioned packages yourself. Use DocKosha Cloud when you want document sharing and data rooms with hosting handled for you.