Skip to content

huguesmax/unoconv-api

 
 

Repository files navigation

unoconv-api

Build v1 - exemple

$ docker build -t convert:v1 .

Run - exemple

$ docker run -d -p 8080:3000 convert:v1

Usage

Post the file you want to convert to the server and get the converted file in return.

See all possible conversions on the unoconv website.

The API for the webservice is /convertPDF/{format-to-convert-to} so a docx to pdf conversion would be:

Test health

$ curl http://127.0.0.1:8080/convertPDF/health
200 -OK

Convert file

$ curl --form file=@myfile.docx http://127.0.0.1:8080/convertPDF/pdf > myfile.pdf

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%