Add back default styles

This commit is contained in:
Dolan
2019-10-04 02:37:22 +01:00
parent 591b2f4e04
commit 10ab3c70bf
5 changed files with 24 additions and 28 deletions

View File

@ -1,13 +1,13 @@
// Example on how to customise the look at feel using Styles
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, HeadingLevel, Packer, Paragraph, Styles, TextRun, UnderlineType } from "../build";
import { Document, HeadingLevel, Packer, Paragraph, TextRun, UnderlineType } from "../build";
const doc = new Document({
creator: "Clippy",
title: "Sample Document",
description: "A brief example of using docx",
styles: new Styles({
styles: {
paragraphStyles: [
{
id: "Heading1",
@ -81,7 +81,7 @@ const doc = new Document({
quickFormat: true,
},
],
}),
},
});
const numberedAbstract = doc.Numbering.createAbstractNumbering();