A Docker image that converts Word documents (DOC, DOCX) and other word processing documents (ODT, RTF, ...) to accessible PDF (PDF/UA) using headless LibreOffice.
You need Docker installed. The first run downloads the image and may take longer than later runs.
Mount a folder into the container and run a subcommand:
docker run --rm -v "$(pwd)":/data -w /data pdfix/convert-doc-to-pdf:v0.0.2 <command> [options]
doc-to-pdf: Convert a word processing document to PDF/UAdoc-to-pdf| Option | Required | Type / expected value | Description |
|---|---|---|---|
--input, -i | yes | Path to an existing .docx, .doc, .odt, .rtf, ... file | Input document |
--output, -o | yes | Path for the output .pdf file in an existing directory | Output PDF |
--standard | no | One of: ua1 (PDF/UA-1), ua2 (PDF/UA-2), ua1-a2b (PDF/UA-1 and PDF/A-2b), ua2-a4 (PDF/UA-2 and PDF/A-4) (default: ua1) | Standard of the output PDF |
Convert a DOCX file to PDF/UA-1:
docker run --rm -v "$(pwd)":/data -w /data pdfix/convert-doc-to-pdf:v0.0.2 doc-to-pdf -i /data/report.docx -o /data/report.pdf
Convert a DOC file to PDF/UA-1 and PDF/A-2b:
docker run --rm -v "$(pwd)":/data -w /data pdfix/convert-doc-to-pdf:v0.0.2 doc-to-pdf -i /data/report.doc -o /data/report.pdf --standard ua1-a2b
ua1 for the most reliable result.config.json errors (print it with the config command).To report an issue, contact [email protected].
Content type
Image
Digest
sha256:652632260…
Size
195.2 MB
Last updated
16 days ago
docker pull pdfix/convert-doc-to-pdf