This example creates a blank document in visible mode.
try { Application application = Application.getInstance(); Documents documents = application.getDocuments(); Document doc = documents.addDocument("", false,true); } catch(Exception e) { e.printStackTrace(); }
This example creates a document based on a template.
try { Application application = Application.getInstance(); Documents documents = application.getDocuments(); Document doc = documents.addDocument("D:\\test.ott", false,true); } catch(Exception e) { e.printStackTrace(); }
Related information