modulepackage
0.0.0-20230418062914-816f7ee98323
Repository: https://github.com/alexanderzh/goconvpdf.git
Documentation: pkg.go.dev
# README
Simple restful service for document conversion
Uses libreoffice to convert from any document (txt, doc, docx, xls, xlsx, rtf, jpg, ...) to pdf
Dirty and ugly wrapper
Usage with docker:
- Run service
docker build -t goconvpdf .
docker run -p 8080:8080 --rm --mount type=tmpfs,destination=/tmpfs goconvpdf
Using --mount type=tmpfs,destination=/tmpfs
is optional: it provides ramdisk instead of HDD and might be slightly faster for large files.
- Send your file via curl or custom HTTP call:
curl -XPOST localhost:8080 -H "Content-Type: multipart/form-data" -F [email protected] --output res.pdf
res.pdf - is your converted file
# Type aliases
No description provided by the author