Document Format Convert API, Generate TOC API
Start API Service
docker run --rm -p 5000:5000 chanmo/libreoffice
File Format Convert
http -f POST :5000/convert/pdf file@/path/to/doc.docx
Generate Doc TOC
http -f POST :5000/generate_toc file@/path/to/doc.docx
Add your font files to fonts directory, then rebuild docker image.