// add a new section

import { CreateDocx, OptionsSection } from "../../../build";
import * as fs from "fs";

const docx = new CreateDocx();

docx.addText("New content in the first section.");

const section: OptionsSection = {
    size: "A3",
};
docx.addSection(section);

docx.addText("New content in the new section.");

docx.save().then(contents => {
    fs.writeFileSync("addSection_1.docx", Buffer.from(contents));
});
