Convert documents to Markdown format through a simple API service.
docker run -d -p 5000:5000 felipefontoura/doc2md
Convert a document to Markdown:
curl -X POST \
-H "Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
--data-binary "@your_document.xlsx" \
http://localhost:5000/convert
- Convert multiples files to Markdown (PDF, PowerPoint, Word, Excel, Images, Audio, HTML, CSV, JSON, XML and ZIP).
- Simple REST API interface
- Docker support
- Easy deployment with Docker Stack
- Pull the image:
docker pull felipefontoura/doc2md
- Run the container:
docker run -d -p 5000:5000 felipefontoura/doc2md
curl -X POST \
-H "Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
--data-binary "@your_document.xlsx" \
http://localhost:5000/convert
Deploy using Docker Stack:
docker stack deploy --prune --resolve-image always -c stack.yml doc2md
Example doc2md.yml
:
version: "3.7"
services:
doc2md:
image: felipefontoura/doc2md:latest
environment:
- OPENAI_API_KEY=sk-xxx
- LLM_MODEL=gpt-4o
ports:
- "5000:5000"
deploy:
replicas: 1
restart_policy:
condition: on-failure
- Clone the repository
- Build the Docker image locally
- Run tests
- Submit pull requests
Made with ❤️ by Felipe Fontoura