2018-08-04 02:43:13 +00:00
|
|
|
# Examples
|
|
|
|
|
2018-08-05 03:16:17 +00:00
|
|
|
## Simple
|
2018-08-05 02:33:21 +00:00
|
|
|
|
|
|
|
A simple hello world of the `docx` library:
|
|
|
|
|
2018-08-05 03:16:17 +00:00
|
|
|
[Simple Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo1.js ':include')
|
2018-08-05 02:33:21 +00:00
|
|
|
|
2018-08-05 03:16:17 +00:00
|
|
|
*Source: https://github.com/dolanmiu/docx/blob/master/demo/demo1.js*
|
|
|
|
|
|
|
|
## Styles
|
|
|
|
|
|
|
|
This example shows how to customise the look and feel of a document using JS configuration
|
|
|
|
|
|
|
|
[Simple Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo2.js ':include')
|
|
|
|
|
|
|
|
Source: https://github.com/dolanmiu/docx/blob/master/demo/demo2.js
|
|
|
|
|
|
|
|
|
|
|
|
## Styles
|
|
|
|
|
|
|
|
This example shows how to customise the look and feel of a document using JS configuration
|
|
|
|
|
|
|
|
[Simple Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo3.js ':include')
|
|
|
|
|
|
|
|
Source: https://github.com/dolanmiu/docx/blob/master/demo/demo3.js
|
|
|
|
|
|
|
|
## Table
|
|
|
|
|
|
|
|
Example of simple table
|
|
|
|
|
|
|
|
[Simple Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/demo4.js ':include')
|
|
|
|
|
|
|
|
Source: https://github.com/dolanmiu/docx/blob/master/demo/demo4.js
|