/doc-converter

Document converter using openoffice service

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

DOCUMENT CONVERTION WITH OPENOFFICE SDK

This service can convert documents into pdf and html using openoffice.

I am having problems under dockerizated build.

It works locally.

Running locally

First of all, you must install oppenoffice. Then run it as a service.

Ex:

/opt/openoffice4/program/soffice -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" &

Once you finished. You can run the application:

mvn clean spring-boot:run -DskipTests

Running under a container

If you want to try running it under a container you can build it using maven.

Although when running it under a container you will see that the application can't connect with the openoffice service defined into run.sh.

# building and running a container.
mvn package -DskipTests docker:build

# running
docker-compose -f ./src/main/docker/docker-compose.yml up

Testing

When running the application. You can try it using the swagger interface:

http://localhost:8080/swagger-ui.html