diff options
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/index.js b/lib/index.js index 683352b..ac9f634 100644 --- a/lib/index.js +++ b/lib/index.js @@ -92,8 +92,13 @@ function embedStyleMap(input, styleMap) { return docxStyleMap.writeStyleMap(docxFile, styleMap); }) .then(function(docxFile) { + return docxFile.toBuffer(); + }) + .then(function(buffer) { return { - toBuffer: docxFile.toBuffer + toBuffer: function() { + return buffer; + } }; }); } |
