3.2.20 • Published 3 years ago

docx4js v3.2.20

Weekly downloads
449
License
MIT
Repository
github
Last release
3 years ago

npm.io

docx4js

*please note 3.x is totally different from 2.x, everything is breaking change.

*please note 2.x is totally different from 1.x, everything is breaking change.

docx4js is a javascript docx parser.

The original goal is to support docx, pptx, and xlsx, but it's a huge work, so I limited to docx so far.

In sake of performance, the implementation doesn't keep parsed structure. It only traverse docx content, and identify docx model, then call passed visitors one by one. No matter content, and styles, are all with the same stratigy. This method makes it do more with less memory.

There are lots of information in docx, but the client application usually only cares about part of them, such as content only, structure only, some styles, or some attributes. The client application is able to handle special word model by TYPE.

Attributes of word model usually affects styles, but I don't understand all of them, so I'm lazy just to iterate every attribute, and some unknown child elements, so client application is possible to catch all information you know.

pptx supported since 3.1.30

Features

environment

  • nodejs
  • browser IE9+ firefox * chrome

identified models

  • section
  • header
  • footer
  • paragraph
  • inline
  • numbering
  • heading
  • shape group line roundRect rect
  • image
  • hyperlink
  • table row cell
  • control. checkbox checked comboBox value options: {displayText, value} date value format locale dropDownList value options: {displayText, value} gallery picture richtext text * value
  • text softHyphen noBreakHyphen tab symbol
  • field date hyperlink * ref
  • OLE: {type:"object", embed, prog, data}
  • diagram
  • equation
  • bookmark
  • range
  • br
  • chart

style

  • document default style
  • named style
  • style inheritance
  • paragraph
  • character
  • numbering
  • section
  • table

3.x API

ChangeLog

* ~~identify OLE object~~

License

GPL

3.2.20

3 years ago

3.2.19

3 years ago

3.2.18

3 years ago

3.2.17

3 years ago

3.2.16

3 years ago

3.2.15

3 years ago

3.2.14

3 years ago

3.2.13

3 years ago

3.2.12

3 years ago

3.2.11

4 years ago

3.2.9

4 years ago

3.2.8

4 years ago

3.2.7

4 years ago

3.2.6

4 years ago

3.2.5

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

5 years ago

3.1.32

5 years ago

3.1.31

5 years ago

3.1.30

5 years ago

3.1.24

5 years ago

3.1.23

5 years ago

3.1.21

5 years ago

3.1.16

5 years ago

3.1.15

5 years ago

3.1.14

5 years ago

3.1.13

6 years ago

3.1.12

7 years ago

3.1.11

7 years ago

3.1.10

7 years ago

3.1.9

7 years ago

3.1.8

7 years ago

3.1.7

7 years ago

3.1.6

7 years ago

3.1.1

7 years ago

3.1.0

7 years ago

1.4.1

7 years ago

2.0.1

8 years ago

1.4.0

8 years ago

1.3.6

8 years ago

1.3.5

8 years ago

1.3.3

8 years ago

1.3.0

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.11.0

9 years ago

0.10.4

9 years ago

0.10.3

9 years ago

0.10.2

9 years ago

0.10.1

9 years ago

0.10.0

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago