Oxi .docx parser for Paperless-ngx
A Paperless-ngx v3 parser plugin. It converts .docx documents inside the Paperless container, with the Oxi engine. It does not use Tika or Gotenberg.
Out of the box, Paperless-ngx sends Office documents to two extra services. Tika extracts their text. Gotenberg, which runs LibreOffice, makes the PDF that Paperless displays and archives. With this plugin, .docx needs neither:
- PDF: made by the bundled
oxidocsengine (installed from PyPI with the plugin). When your output type is PDF/A (the default), the container's ownocrmypdfconverts it, the same way Paperless makes its other archives. - Text, date and metadata: read straight from the document's XML, so search sees whole words in reading order.
- Fallback: a document holding content Oxi does not draw (some charts, SmartArt saved without its drawing, or less than 90% of its text drawn) goes to the built-in Tika parser when Tika is enabled. Without Tika, it is converted as well as Oxi can.
- Other formats:
.doc,.xlsx,.pptx,.odtand the rest stay with Tika as before.
The plugin itself makes no network requests.
Install with Docker
-
Next to your
docker-compose.yml, create thisDockerfile:FROM ghcr.io/paperless-ngx/paperless-ngx:latest RUN pip install --no-cache-dir paperless-ngx-oxidocs
Leave the image's user as it is: its
/initstarts as root and drops privileges itself. -
Point the
webserverservice at it instead of the upstream image:services: webserver: build: . # ...keep the rest of your existing config (env, volumes, depends_on, ...)
-
Rebuild and restart:
docker compose build webserver && docker compose up -d
At startup the log shows Loaded third-party parser 'Oxi DOCX Parser' .... A consumed .docx logs Oxi converted report.docx: 3 pages in 120 ms.
You can keep the Tika and Gotenberg services for the formats this plugin doesn't handle and for the fallback. If you only store .docx among Office formats, you can turn Tika off (PAPERLESS_TIKA_ENABLED=false) and drop both services.
Supported image architectures: amd64 and arm64, the two Paperless publishes.
Install on bare metal
Install into the Python environment Paperless runs in (often a venv under /opt/paperless), then restart its services:
/opt/paperless/venv/bin/pip install paperless-ngx-oxidocs
PDF/A output needs ocrmypdf on the PATH, which a Paperless install already has.
How good is the PDF?
The engine was measured on 50 English and 50 Japanese documents. The documents were frozen before any engine rendered them, and each output was scored against Microsoft Word's own PDF. On the same Linux machine, Oxi beat LibreOffice, which is what Gotenberg runs, on every measure:
| English SSIM | page count matches Word | Japanese SSIM | page count matches Word | |
|---|---|---|---|---|
| Oxi | 0.884 | 47 / 50 | 0.797 | 45 / 50 |
| LibreOffice | 0.841 | 39 / 50 | 0.769 | 26 / 50 |
Across 4,988 documents, the median conversion took 0.08 s against 0.89 s for LibreOffice. The method is in integrations/gotenberg.
Checking it
e2e/run.sh builds Paperless-ngx 3.4.2 with this plugin. It then consumes three .docx files with no Tika and no Gotenberg, and checks what Paperless stored for each: page count, text, and archive PDF. pytest tests/ checks the text extraction on its own.
Notes
- Paperless-ngx does not support third-party plugins: report problems with this plugin at Ryujiyasu/oxi, not to Paperless-ngx.
- This plugin was written with AI assistance (Claude).
- License: MIT OR Apache-2.0. The
oxidocsengine it installs is MPL-2.0.
Metadata
Release files for paperless-ngx-oxidocs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paperless_ngx_oxidocs-0.1.0.tar.gz | 14.4 kB | With provenance | Details for paperless_ngx_oxidocs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paperless_ngx_oxidocs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for paperless_ngx_oxidocs-0.1.0-py3-none-any.whl |
Total release size: 28.1 kB
Release files / paperless_ngx_oxidocs-0.1.0.tar.gz
| Download URL | paperless_ngx_oxidocs-0.1.0.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c224e63f6f1233b33fda0432ad9fb2a22c8d78f4d504281089fb7d8e857e3dce
|
|
BLAKE2b-256 checksum How to use checksums |
08e1d21320902c2e59094188eaef8342b54e9e664ca4e2af9f62e50c55c64f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / paperless_ngx_oxidocs-0.1.0-py3-none-any.whl
| Download URL | paperless_ngx_oxidocs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eda1b801aebccbf71f73c5ae4aa593486fccf923ab9f8b7ed4a0e3c0298d17e0
|
|
BLAKE2b-256 checksum How to use checksums |
6be6dfccd6480a2f2efc20d558ddd7f3827fe82fdb48699efd0b93b953459c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for paperless-ngx-oxidocs 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for paperless_ngx_oxidocs-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA 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.