Categorygithub.com/AlexanderZh/goconvpdf
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:

  1. 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.

  1. 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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Type aliases

No description provided by the author