1
2
/*
npm install --save docxtemplater pizzip
Replace "{tags}" in docx document from json data:
Ex:
node doctemplater2.js input.docx '{"TITLE": "This is the title for document", "USER": "MyUser"}' output.docx
result file will replace {TITLE} with 'This is the title for document' and {USER} with 'MyUser' in document contents.
Ex:
node doctemplater2.js input.docx '{"TITLE": "This is the title for document", "USER": "MyUser"}' output.docx
result file will replace {TITLE} with 'This is the title for document' and {USER} with 'MyUser' in document contents.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.