diff --git a/demo/16-multiple-sections.ts b/demo/16-multiple-sections.ts index 10e2098704..6e947a9d8a 100644 --- a/demo/16-multiple-sections.ts +++ b/demo/16-multiple-sections.ts @@ -1,12 +1,12 @@ // Multiple sections and headers // Import from 'docx' rather than '../build' if you install from npm import * as fs from "fs"; -import { Document, Footer, Header, Packer, PageNumberFormat, PageOrientation, Paragraph, TextRun } from "../build"; +import { Document, Footer, Header, Packer, PageBreak, PageNumberFormat, PageOrientation, Paragraph, TextRun } from "../build"; const doc = new Document(); doc.addSection({ - children: [new Paragraph("Hello World").pageBreak()], + children: [new Paragraph("Hello World"), new PageBreak()], }); doc.addSection({