Word (DOCX) generation adapter using Apache POI XWPF.
Apache POI is already on the classpath as a transitive dependency via docjure → poi-ooxml. No new Maven dependencies are needed.
Supports the same declarative :sections API as the Excel adapter. The :template key is PDF-only and is ignored here.
Usage: (def wd-gen (create-word-generator)) (generate! wd-gen my-report-def data {}) ;; => {:bytes #bytes[...] :type :word :filename "my-report.docx"}
Word (DOCX) generation adapter using Apache POI XWPF.
Apache POI is already on the classpath as a transitive dependency
via docjure → poi-ooxml. No new Maven dependencies are needed.
Supports the same declarative :sections API as the Excel adapter.
The :template key is PDF-only and is ignored here.
Usage:
(def wd-gen (create-word-generator))
(generate! wd-gen my-report-def data {})
;; => {:bytes #bytes[...] :type :word :filename "my-report.docx"}(create-word-generator)Create a new POI XWPF-backed Word generator.
Create a new POI XWPF-backed Word generator.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |