This module makes it possible to operate on the docx document, for example set the document as readonly
This module is available as part of the docxtemplater ENTREPRISE plan.
This module doesn't expose tags, but it makes it possible to do some operations on the docx itself.
The META module currently can :
You will need docxtemplater v3: npm install docxtemplater
Install this module with npm install --save "$url"
To use this module, do :
const DocxtemplaterMetaModule = require('docxtemplater-meta-module');
const metaModule = new DocxtemplaterMetaModule();
doc.attachModule(metaModule);
doc.setData(data);
doc.compile();
metaModule.readonly();
doc.render();
const buffer = doc.getZip().generate({ type: "nodebuffer"});
You can build the es6 into js by running npm run compile
You can test the module with npm test