Download Latest Version 9.9.0 source code.zip (92.8 MB) Google Add to Preferred Sources
Home / 9.8.0
Name Modified Size InfoDownloads / Week
Parent folder
9.8.0 source code.tar.gz 2026-09-27 5.7 MB
9.8.0 source code.zip 2026-09-27 6.3 MB
README.md 2026-09-27 8.1 kB
Totals: 3 Items   12.0 MB 0

9.8.0 is one of the biggest releases of docx yet. It adds charts, shapes and watermarks, and a lot more math. Each has its own entry point (docx/charts, docx/shapes, docx/watermarks and docx/math), so your bundle only includes the ones you import.

Charts are native Word charts, not pictures. Word draws them from their data in the document's theme, and Edit Data opens that data in Excel. You can make column, bar, line, area, pie, doughnut, pie of pie, bar of pie, radar, scatter, bubble, stock and combo charts, with trendlines, error bars, categories in groups and more. Charts also work in templates. patchDocument can put a new ChartRun where a placeholder is, and ChartDataPatch gives new data to a chart made and styled in Word while keeping its look.

Shapes cover Word's preset shapes (rectangles, ellipses, arrows, callouts, flowchart symbols and the rest), plus custom shapes drawn from SVG paths. You can group shapes with ShapeGroupRun, or join them with connectors on a ShapeCanvasRun and let automatic layout place them, which is how you'd build flowcharts, org charts and swimlane diagrams. Math gains matrices, cases, equations lined up with numbers, and brackets made of any characters. Math you already import from docx keeps working there. Watermarks are text or pictures behind every page, and Word recognises them in its own Design > Watermark menu.

Every document now has a theme, and you can set its colours and fonts with the theme option. Text, underlines, borders, shading, shapes and the page background can use theme colours, and text can use the theme's heading or body font, so they all change when the theme is changed in Word. patchDocument works out theme colours from the template's own theme.

Every demo's document is now checked with the Open XML SDK validator in CI, and this release fixes everything it found. Thank you to everyone who contributed, and welcome to our five new contributors: @slmnsh added image cropping, @theunal watermarks, @holm run properties on ImageRun, and @omartuhintvs and @fushanbobfan fixes to tables and the patcher.

What's Changed

New Contributors

Full Changelog: https://github.com/dolanmiu/docx/compare/9.7.2...9.8.0

Source: README.md, updated 2026-09-27