: Many third-party extensions and advanced macros are written in Java, utilizing the Universal Network Objects (UNO) API to automate document processing. Configuration & Compatibility
XComponent doc = desktop.loadComponentFromURL( "file:///C:/input/myfile.odt", "_blank", 0, new PropertyValue[0] ); XTextDocument textDoc = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, doc); String content = textDoc.getText().getString(); System.out.println(content); java open office
You need juh.jar , jurt.jar , ridl.jar , unoil.jar from OpenOffice installation ( program/classes/ ). : Many third-party extensions and advanced macros are
import com.sun.star.frame.XStorable; import com.sun.star.beans.PropertyValue; new PropertyValue[0] )