Skip to content

miikatoi/unoserver-rest-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unoserver-rest-api-wrapper

Wraps https://github.com/libreofficedocker/unoserver-rest-api for embedding images into html.

NOTE:

  • Currently no security implemented!
  • Default filter loses correct positions of images sometimes. XHML filter maintains the correct positions better but sometimes raises error. Good solution can be to use XHTML filter first and fall back to HTML filter.

Usage

Start the containers

docker-compose up --build

Make queries as you would to unoserver-rest-api

curl -s -v \
   --request POST \
   --url http://127.0.0.1:2004/request \
   --header 'Content-Type: multipart/form-data' \
   --form "file=@my_file.docx" \
   --form 'convert-to=html' \
--output "foo.html"

About

Additional layer on unoserver-rest-api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published