Easily generate and modify .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.
MIT License
Bot releases are visible (Hide)
Published by dolanmiu about 6 years ago
https://github.com/dolanmiu/docx/issues/72
https://github.com/dolanmiu/docx/issues/91
https://github.com/dolanmiu/docx/issues/61
https://github.com/dolanmiu/docx/pull/90 - Buffer packer
https://github.com/dolanmiu/docx/pull/87 - footnotes
https://github.com/dolanmiu/docx/pull/86 - Multiple headers
https://github.com/dolanmiu/docx/pull/98 - support for w:eastAsia and w:cs
https://github.com/dolanmiu/docx/pull/100 - Bookmarks and Internal hyperlinks #100
https://github.com/dolanmiu/docx/pull/111 - make .docx file smaller
https://github.com/dolanmiu/docx/pull/107 - grid span
https://github.com/dolanmiu/docx/pull/106 - table cell shading
https://github.com/dolanmiu/docx/pull/89 - Image methods # Will break 3.x.x
https://github.com/dolanmiu/docx/pull/103 - Bidi support
https://github.com/dolanmiu/docx/pull/113 - documentation revamp
https://github.com/dolanmiu/docx/pull/114 - add bold and italics to bididrectional text
#124 - docx Browser support! Now it works for Angular/React/Vanilla HTML
Published by dolanmiu over 6 years ago
Published by dolanmiu over 6 years ago
Published by dolanmiu over 6 years ago
Published by dolanmiu over 6 years ago
3.2.0
brings huge features, notibily:
Image support
Footer and header support
Landscape + Portrait mode
Ability to change margins
Check out the demos!
Massive internal overhaul of project to make it easier to maintain, and easier to add new features.
Strict use of Prettier formatting
/src
folder rather than /ts
Using webpack for building rather than tsc
Tests run all demos as part of the checks
Published by dolanmiu almost 7 years ago
Add PDF exporting support!
now when you create an exporter, you can use .packPdf()
to export it as a PDF document instead:
var exporter = new docx.LocalPacker(doc);
exporter.packPdf('My Document');
Published by dolanmiu about 7 years ago
Published by dolanmiu about 7 years ago
Published by dolanmiu about 7 years ago
Published by dolanmiu over 7 years ago
Made XmlableObject non-ambient, which means the tsc compiler is able to include it in the typings
Published by dolanmiu over 7 years ago
TypeScript definitions are now avaliable by default!
This means, if you are in a TypeScript project, you get autocomplete and all that good stuff without any extra configuration or packages.
Sorry that this wasn't avaliable earlier!
Published by dolanmiu over 7 years ago
Published by dolanmiu over 7 years ago
Breaking changes:
addTextRun
is now addRun
because soon you will be able to add picture runs. I found it a bit pointless having a new method for each new run addTextRun, addPictureRun etc. So instead, there will be one method which take any form of run!
Published by dolanmiu over 7 years ago
Minor package.json
update
Published by dolanmiu over 7 years ago
Added numberings
Font support
Published by dolanmiu over 7 years ago
Minor fixes
Made CI pass