https://github.com/skilld-labs/doc_serialization
https://github.com/skilld-labs/doc_serialization
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skilld-labs/doc_serialization
- Owner: skilld-labs
- License: gpl-3.0
- Created: 2020-08-07T10:33:38.000Z (almost 5 years ago)
- Default Branch: 8.x-1.x
- Last Pushed: 2024-04-23T22:52:16.000Z (about 1 year ago)
- Last Synced: 2025-03-13T07:02:26.058Z (3 months ago)
- Language: PHP
- Size: 1.64 MB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Word (DOCX) Serialization
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:* 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](https://github.com/PHPOffice/PHPWord).
and all of it's dependencies:
* [zendframework/zend-escaper 2.4.*](https://github.com/zendframework/zend-escaper/tree/release-2.4.13)
* [zendframework/zend-stdlib 2.4.*](https://github.com/zendframework/zend-stdlib/tree/release-2.4.13)
* [zendframework/zend-validator 2.4.*](https://github.com/zendframework/zend-validator/tree/release-2.4.13)
* [zendframework/zend-stdlib 2.4.*](https://github.com/zendframework/zend-stdlib/tree/release-2.4.13)
* [phpoffice/common 0.2.6](https://github.com/PHPOffice/Common/tree/0.2.6)
* [pclzip/pclzip": ^2.8](https://github.com/ivanlanin/pclzip/tree/2.8.2)
The preferred installation method is to
[use Composer](https://www.drupal.org/node/2404989).
* The serialization module is required, so install that too.
* Enable the `doc_serialization` module.
#### Creating a view with a DOC display
1. Create a new view
2. Add a *Word Export* display.
3. Select 'docx' for the accepted request formats under
`Format -> Word export -> Settings`.
4. Add desired fields to the view.
5. Add a path, and optionally, a filename (pattern).#### License ####
Unless otherwise stated all code is licensed under GNU GPL v3 and has the following copyright:
```
Copyright 2017, XSbyte
All rights reserved
```