Word Serialization
Categories
Component ID
2926287
Component name
Word Serialization
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
31
Component created
Component changed
Component body
This module provides a Word encoder for the Drupal 8 Serialization API. This
enables the DOCX format to be used for data output (and potentially input,
eventually). For example:
For example:
- Views can output DOCX data via a 'Word Export' display in a View.
- Module developers can leverage DOCX as a format when using the
Serialization API.
Installation
Download and install PHPOffice/PHPWord and all of it's dependencies (see README). The preferred installation method is to use Composer
This module depends on the serialization module.
Enable the `doc_serialization` module.
Creating a view with a DOC display
- Create a new view
- Add a *Word Export* display.
- Select 'docx' for the accepted request formats under `Format -> Word export -> Settings`.
- Add desired fields to the view.
- Add a path, and optionally, a filename (pattern).
Thanks to Spokje for making this possible.