Skip to content

AlexanderZh/goconvpdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 fileName=@routers.go --output res.pdf

res.pdf - is your converted file

About

Simple document conversion to pdf RESTful service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published