-
-
Notifications
You must be signed in to change notification settings - Fork 577
Document
Dolan edited this page Mar 13, 2017
·
1 revision
The Document object is the starting point of your .docx journey, this is the literal Word Document. You add all your content such as Paragraphs to this Document, and at the end export it however you like.
To create a new document, it is very easy:
var doc = new docx.Document();You can add properties to the Word document by specifying options, for example:
var doc = new docx.Document({
creator: 'Dolan Miu',
description: 'My extremely interesting document',
title: 'My Document'
});creator
description
title
subject
keywords
lastModifiedBy
revision
You can mix and match whatever properties you want, or provide no properties.