High-performance HTTP server for .doc to .docx conversion via LibreOffice with REST API support.
1.7K
High-performance HTTP server for document format conversions, specializing in .doc to .docx conversion via LibreOffice. Features REST API, pluggable converter architecture, and optional external service integration. source
Run locally (Go):
go run .go build -o fconv . && ./fconv./fconv -h (flags include -host, -port; envs include FCONV_PORT, FCONV_LISTEN_ADDR, FCONV_AUTH_KEY, FCONV_TIMEOUT etc,.)Run with Docker:
docker pull tdio/fconv:latestdocker run --rm -p 8080:8080 --name fconv tdio/fconv:latestdocker run --rm tdio/fconv:latest -hHealth check:
curl http://localhost:8080/healthz → okConvert .doc → .docx:
output.docx):
curl -sS -X POST 'http://localhost:8080/api/v1/convert/doc2docx' \
-F 'file=@/path/to/input.doc' \
-o output.docx
curl -sS -H 'Accept: application/json' -X POST 'http://localhost:8080/api/v1/convert/doc2docx' \
-F 'file=@/path/to/input.doc' | jq -r .base64 | base64 --decode > output.docx
Optional auth:
FCONV_AUTH_KEY=secret and pass header Authorization: Bearer secret in requests.The .doc file reader converts Microsoft Word documents (.doc format) to docx using LibreOffice, then processes them through the existing docx workflow.
To use .doc file support, you need to install LibreOffice on your system.
sudo apt update
sudo apt install libreoffice
# CentOS/RHEL
sudo yum install libreoffice
# Fedora
sudo dnf install libreoffice
# Using Homebrew
brew install --cask libreoffice
# Or download from https://www.libreoffice.org/download/download/
After installation, verify LibreOffice is available:
libreoffice --version
# or
soffice --version
.doc file is uploaded, the system detects the file extension.doc file to docx using the command:
libreoffice --headless --convert-to docx --outdir <output_dir> <input_file>
If LibreOffice is not installed or fails to convert:
.doc files may take longer to processContent type
Image
Digest
sha256:8c1cb1971…
Size
331 MB
Last updated
about 1 year ago
docker pull tdio/fconv