zrrrzzt / docker-unoconv-webservice

Dockerfile to run unoconv as a webservice
MIT License
96 stars 35 forks source link

Some question about convert doc to html #8

Closed herryliq closed 3 years ago

herryliq commented 7 years ago

I want convert .docx file to html format, and execute the follows cmd: curl --form file=@Kubernetes.docx http://localhost:8011/unoconv/html > myfile.html

the result seems very well except the image that in the doc file can not convert . Is it need some another config or other command about it?

xverges commented 6 years ago

May be related to https://ask.libreoffice.org/en/question/58576/headless-conversion-to-html-embeds-images-instead-of-creating-separate-files/?answer=141703#post-id-141703

kchapple commented 3 years ago

@zrrrzzt This appears to be an issue because the service only returns the converted HTML file, and not the linked images. In an HTML document, the images are external links to png files that are generated by unoconv, but those image files are not returned by the service, only the HTML document. Any idea if this is possible to fix?

zrrrzzt commented 3 years ago

You are right. This service only returns 1 file, even if there are several created by unoconv. It might be possible to fix but I'm probably not going to do it. I'm not using this service myself anymore. PRs are welcome though :-)

zrrrzzt commented 3 years ago

Just added support for multiple files in this service https://github.com/Alheimsins/micro-office-converter @kchapple It is kind of the same but less tested :-)

kchapple commented 3 years ago

Than you @zrrrzzt I will investigate the options. I appreciate your response!