Landscape mode

This commit is contained in:
Dolan
2018-01-25 01:47:47 +00:00
parent 4339f8cfc0
commit 355e97cb5e
4 changed files with 24 additions and 4 deletions

14
demo/demo7.js Normal file
View File

@ -0,0 +1,14 @@
const docx = require("../build");
var doc = new docx.File(undefined, {
orientation: "landscape",
});
var paragraph = new docx.Paragraph("Hello World");
doc.addParagraph(paragraph);
var exporter = new docx.LocalPacker(doc);
exporter.pack("My Document");
console.log("Document created succesfully at project root!");