This example sets the edit area of the document invisible.
try { Application application = Application.getInstance(); Documents documents = application.getDocuments(); Document document = documents.openDocument("D:\\test.odt", true); document.setEditAreaVisible(false); } catch(Exception e) { e.printStackTrace(); }
Related information