edi9999/docxtemplater — pull request #95 by tdonia (2014-10-21 19:22:43+00:00)
Title: Pptx 1.x

Ok, redux. Now based on the 1.1 branch with a regex for slide searching

Feedback appreciated!

```
var docx = require('docxtemplater');

var fs = require('fs');
content=fs.readFileSync(__dirname+"/CM-Template-double.pptx","binary")
doc=new docx.PptxGen(content);
doc.setData({
"first_name":"Hipp",
"last_name":"Edgar",
"phone":"0652455478",
"description":"New Website"
})
doc.render()
zip=doc.getZip()

var output = zip.generate({type:"arraybuffer"}),
buffer = new Buffer(output.byteLength);

for (var i = 0; i < buffer.length; ++i) {
buffer[i] = output[i];
}
fs.writeFileSync(__dirname + "/output.pptx", buffer);
```