wteja/pdf-converter
Easily convert office documents to PDF using a Go-based server and LibreOffice in headless mode.
58
The Office to PDF Converter Docker image provides a simple and efficient way to convert office file formats to PDF. It uses a Go-based HTTP server as the backend and LibreOffice in headless mode for the conversion process.
This container is ideal for developers who need a quick solution for document conversion in web applications, automation pipelines, or microservices. With built-in support for multiple file formats and endpoints for health checks and conversions, it is designed to be reliable, lightweight, and easy to use.
Features
.docx
, .xlsx
, .pptx
, etc.) to PDF.GET /
POST /convert
(Upload files for conversion)5000
by default.https://pdf-converter.itthirit.io
.Supported File Formats
.doc
, .docx
, .odt
, .rtf
, .txt
.xls
, .xlsx
, .ods
, .csv
.ppt
, .pptx
, .odp
.svg
, .html
, .xml
How to Use
Pull the Docker image:
bash
Copy code
docker pull wteja/pdf-converter
Run the container:
bash
Copy code
docker run -p 5000:5000 wteja/pdf-converter
Endpoints:
Health Check:
bash
Copy code
curl http://localhost:5000/
Response: OK
Convert Document:
bash
Copy code
curl -X POST -F "file=@example.xlsx" http://localhost:5000/convert --output output.pdf
Use Cases
Technical Details
5000
Support
For issues or feature requests, please contact me via the Docker Hub repository or submit an issue in the GitHub repository.
docker pull wteja/pdf-converter