pip install omnidoc==0.1.8 Copy PIP instructions
One app. One API. Your layout stays exactly where it was.
Stop re-typing translated PDFs. OmniDoc translates PDF, Word, PowerPoint, LaTeX and 11 more formats into 38 languages and puts every table, formula and footnote back in place. Then it goes further: four free offline editors, interactive documents that publish as web pages, and a built-in MCP server with 40+ tools so Claude, Cursor and other AI assistants create and edit your files for you.
38 languages · 15 file formats · 40+ MCP tools · Offline editing · Windows · macOS · Linux · Web
pip install omnidoc from omnidoc import OmniDocClient # one call: upload, translate with the layout kept, download side-by-side bilingual files OmniDocClient().translate_file("contract.pdf", "en", output_dir="out", output_mode="bilingual") Website: https://omnidoc.top/ Download the free desktop app: https://download.omnidoc.top/ API documentation: https://docs.omnidoc.top/ This package is the OmniDoc Python SDK. It calls the OmniDoc API, so it needs an OmniDoc account and an API key (see Quick start).
OmniDoc,是把高质量翻译、文档结构化提取、动态内容文档和 AI 办公整合在一起的新一代文档生产力平台。
论文、合同、表格、报告与演示材料,可以从阅读开始,一路走向理解、整理、分析和交付。专业翻译关注上下文与术语,结构化提取让内容成为可用数据,动态文档让知识通过交互被理解,MCP 则让这些能力成为 AI 可以调用的工具。
免费翻译,让语言障碍更小;学生完全免费,让好工具更接近学习者。OmniDoc 希望以“世界首款动态内容文档”的开创精神,追求最强翻译效果和最强结构化提取能力,做中国新生的金山软件,打造面向全球的下一代办公力量。
OmniDoc,让文档成为生产力。让知识自由流动,让工作更快完成。 访问 omnidoc.top,开启你的下一代文档体验。
The world's most powerful AI document engine, all in one app.
The first product to put PDF layout reconstruction, interactive dynamic documents and AI-native office work into one app: translated PDFs keep their layout, documents become web pages, and AI builds your Word, Excel and PowerPoint files. The desktop app is free.
Structure extraction that keeps the layout, documents that are interactive web pages, and an office suite that AI assistants operate directly.
Production-grade structure extraction that keeps the layout. OmniDoc reads PDFs, Word files and scans into their real structure: headings, paragraphs, lists, tables, formulas, headers, footers, footnotes and reading order. Translation and conversion put every element back where it was, so a translated paper keeps its equations and a converted PDF keeps its pages. PDF to a web page with selectable text in about one second on your own computer; scanned and complex pages go through visual structure extraction.
UniDoc: documents that are interactive web pages. A UniDoc document can hold interactive charts, animations, flowcharts, tabs, cards and numbered equations that readers click, drag and play. Publish it and it stays interactive at a public web address; when you need a static copy, export the same file to Word, PDF or lossless HTML. AI assistants can write a whole interactive document in one go. Native .udoc format, about 9 ms from keystroke to layout, and the same editor in the desktop app and the browser.
An AI-native office suite: your assistant does the work. OmniDoc Desktop ships with an MCP server of more than 40 tools. Claude, Cursor and other MCP apps use it to create and edit Word, Excel and PowerPoint files, convert PDFs, translate, publish and manage Zotero papers, and to check their own work: every edit returns layout problems, recalculated formulas or slide previews. Runs on your computer: editing and conversion are offline and free; cloud services such as translation use credits.
Install OmniDoc Desktop and add it to Claude Desktop or Cursor in one click, or to any app that supports MCP. Your assistant then works on real files on your computer.
Editing and conversion run offline at no cost. Translation and other cloud services use credits, and your assistant acts as the account signed in to OmniDoc, so there is no API key to paste.
Translation is charged for what is actually delivered, roughly 4 credits per page. The smallest pack is 3,000 credits for ¥9.9 (about 750 pages), and bought credits never expire. The editors and offline conversion are free.
pip install omnidoc Requires Python 3.9 or newer. The only dependency is requests.
Create an API key (it starts with sk_) in the API center at https://omnidoc.top/app/api-keys and put it in the environment:
export OMNIDOC_API_KEY="sk_your_key" from omnidoc import OmniDocClient client = OmniDocClient() # reads OMNIDOC_API_KEY files = client.translate_file("report.docx", "en", output_dir="out") print(files) translate_file uploads the file (presign, direct upload, finalize), creates a translation job, polls until it ends and downloads every artifact. A failed job raises JobFailedError; quota_exceeded is true when the balance was too low to start, in which case nothing is charged.
doc_id = client.upload("report.docx") job = client.create_job(doc_id, "en", output_mode="bilingual") job = client.wait_job(job["id"], poll_interval=3, timeout=1800) for artifact in client.list_artifacts(job["id"]): client.download_artifact(artifact["id"], "out") Each create_job call generates a new Idempotency-Key; internal retries reuse it, so a job is never created or charged twice. To retry the same submission yourself, pass the same idempotency_key.
client.get_job(job_id) # job status (free) client.cancel_job(job_id) # cancel a job client.credit_balance() # credit balance (free) client.credit_operations() # credit history client.usage_summary() # usage summary # Endpoints not wrapped yet: call them by the path shown on docs.omnidoc.top client.get_json(" ", params={...}) client.post_json(" ", json={...}) Errors and retries API errors raise OmniDocError with status_code, code, message and request_id (the X-Request-Id response header). 429 and 5xx responses are retried using Retry-After or exponential backoff, up to max_retries times (default 4). AUTH_API_KEY_QUOTA_EXCEEDED is not retried: the key's budget is used up and has to be raised first. Webhook signatures from omnidoc import parse_webhook event = parse_webhook(raw_body, request.headers["X-Webhook-Signature"], secret) Verify with the raw request body bytes. A bad signature or an old timestamp raises ValueError. De-duplicate events by data.job_id and data.status.
pip install -e ".[test]" pytest The tests use a fake HTTP session: no API key and no network.
omnidoc document translation pdf translation translate pdf pdf to word layout preserved document conversion content extraction structured extraction docx pptx latex mcp mcp server claude cursor ai office ai office suite api client
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




