This example displays the path of the document.
try { Application application = Application.getInstance(); Documents documents = application.getDocuments(); Document document = documents.openDocument("D:\\test.odt", true); System.out.println(document.getPath()); } catch(Exception e) { e.printStackTrace(); }
Related information