er string array
jbennett85 opened this issue · 1 comments
jbennett85 commented
Environment
- Version of docxtemplater :
- Used docxtemplater-modules :
- Runner : Browser/Node.JS/...
How to reproduce my problem :
My template is the following : (Upload the docx file here inside github, which you have to name template.zip (github doesn't accept the docx extension))
With the following js file :
const fs = require('fs');
const Docxtemplater = require('docxtemplater');
const content = fs
.readFileSync(__dirname + "/template.zip", "binary");
const zip = new PizZip(content);
const doc = new Docxtemplater(zip)
doc.render({
( INSERT YOUR DATA HERE )
});
const buf = doc.getZip()
.generate({type:"nodebuffer"});
fs.writeFileSync(__dirname+"/output.docx",buf);
I would expect it to :
- return the following template (please upload your generated document and expected document)
- not fail (include error message)
edi9999 commented
Please add some info to this issue.