@ngoctay/nodejs-pptx
Version:
Generate PPTX files on the server-side with JavaScript.
18 lines (14 loc) • 478 B
JavaScript
const fs = require('fs');
const { Xml } = require('../../xmlnode');
class PresPropsFactory {
constructor(parentFactory, args) {
this.parentFactory = parentFactory;
this.content = parentFactory.content;
this.args = args;
}
build() {
const xml = fs.readFileSync(`${__dirname}/../../fragments/ppt/presProps.xml`);
this.content['ppt/presProps.xml'] = Xml.parse(xml);
}
}
module.exports.PresPropsFactory = PresPropsFactory;