Skip to content

a java client to LibreOffice API to process a document into a custom html template

Notifications You must be signed in to change notification settings

cesarpachon/odt2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ODT2HTML

experiment to parse a office document (either ms-word or libreoffice) using the JAVA connector to LibreOffice's UNO API, and generate custom HTML.

reference: http://api.libreoffice.org/

##setup LibreOffice API requires some development utilities. install like this: sudo apt-get install libreoffice-dev

move to the sdk library and execute the following script to define env variables: cd /usr/lib/libreoffice/sdk

./setsdkenv_unix

test the result of the script with this: echo $OO_SDK_NAME

important! the script create variables only in a temporal way. you will need to execute the script every time or use another solution (like moving all the vars to your .bashrc)

jars path: /usr/lib/libreoffice/program/classes/

##running

./soffice.bin --headless --accept="socket,port=8100;urp;" --nologo

About

a java client to LibreOffice API to process a document into a custom html template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published