Document creation. Currently it will create a very simple file here & 'Evaluation Only. Created with Aspose.Words. Copyright 2003-2011 Aspose Pty Ltd.' message will be displayed as you have to purchase this Aspose library to use it properly -
import com.aspose.words.Document;
import com.aspose.words.DocumentBuilder;
public class Creation {
public static void main(String[] args) throws Exception {
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.writeln("Hello Nitin");
doc.save("e:\\asposes.pdf"); // doc.save("e:\\asposes.docx");
}
}
import com.aspose.words.Document;
import com.aspose.words.DocumentBuilder;
public class Creation {
public static void main(String[] args) throws Exception {
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.writeln("Hello Nitin");
doc.save("e:\\asposes.pdf"); // doc.save("e:\\asposes.docx");
}
}