Я использую DocumentConverter DocumentConverter Crass LibreOffice для преобразования .odt в .pdf. < /p>
в местном ) Это дает мне ошибку при попытке подключиться к исполняемому файлу LibreOffice Linux (LibreOffice -Oversion LibreOffice 7.0.4.2 00 (сборка: 2)). < /P>
//i also try with /usr/lib/libreoffice/program/soffice
String rutaLibreOffice = "/usr/lib/libreoffice/program";
XComponentContext xContext = BootstrapSocketConnector.bootstrap(rutaLibreOffice);
Ошибка:
com.sun.star.lang.illegalargumentException> Библиотека BootStrapSockEcketConnector https://mvnrepository.com/artifact/org. ... ctor/0.1.1
my build.gradle:
// https://mvnrepository.com/artifact/org. ... ibreoffice
compile 'org.libreoffice:jurt:5.4.2'
// https://mvnrepository.com/artifact/org. ... fice/unoil
compile 'org.libreoffice:unoil:5.4.2'
// https://mvnrepository.com/artifact/org. ... fice/unoil
compile 'org.libreoffice:ridl:5.4.2'
// https://mvnrepository.com/artifact/org. ... ibreoffice
compile 'org.libreoffice:juh:5.4.2'
// https://mvnrepository.com/artifact/org. ... -connector
compile 'org.openoffice:bootstrap-connector:0.1.1'
Подробнее здесь: https://stackoverflow.com/questions/794 ... e-with-jav