Skip to main content

doc2x

doc2x by OmniDoc: translate PDF, Word, PowerPoint, LaTeX and more into 38 languages with the layout kept, convert between formats, and extract document structure.

This package is the doc2x Python SDK. It installs the omnidoc SDK and exposes the same API, so both packages work the same way.

Not affiliated with other products that use the name Doc2X.

Install

pip install doc2x

Requires Python 3.9 or newer.

Quick start

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 doc2x import Doc2XClient

client = Doc2XClient()  # reads OMNIDOC_API_KEY
files = client.translate_file("report.pdf", "en", output_dir="out", output_mode="bilingual")
print(files)

Doc2XClient is the same class as omnidoc.OmniDocClient. For every method, error type and webhook helper, see the omnidoc documentation and https://docs.omnidoc.top/.

Metadata

Release files for doc2x 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doc2x 0.1.0
File Size Uploaded Provenance Actions
doc2x-0.1.0.tar.gz 2.5 kB Without provenance Details for doc2x-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doc2x 0.1.0
File Interpreter ABI Platform Actions
doc2x-0.1.0-py3-none-any.whl Python 3 none any Details for doc2x-0.1.0-py3-none-any.whl

Total release size: 4.9 kB

Release files / doc2x-0.1.0.tar.gz

Download URL doc2x-0.1.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
41f3feddba718d14f1edc2ab52ddc5456cc35cbb056f4c9bb5143e942ed973e1
BLAKE2b-256 checksum
How to use checksums
f2d9ef6252a5d6cdef202a971b11410dac038b6940d767b4565ea7e8a86bd074
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / doc2x-0.1.0-py3-none-any.whl

Download URL doc2x-0.1.0-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63371d4789995c3b01c5454cc76dcb2857e401cbb8ec1d00f6eaf5495a8e1177
BLAKE2b-256 checksum
How to use checksums
3ed14627df3a4b58a9759d84b89fd42db7177d7e31e44184e089f5457c30f318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for doc2x 0.1.0

Provenance

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page