Rename penguin

This commit is contained in:
Dolan
2018-01-22 21:34:09 +00:00
parent ef05024f2f
commit e6d3577f74
4 changed files with 3 additions and 9 deletions

View File

@ -10,13 +10,7 @@ paragraph.addRun(dateText);
doc.addParagraph(paragraph);
// Feature coming soon
// var media = new docx.Media();
// media.addMedia("happy-penguins", "./demo/penguins.jpg");
// var pictureRun = new docx.PictureRun(media.getMedia("happy-penguins"));
// var exporter = new docx.LocalPacker(doc);
var exporter = new docx.LocalPacker(doc);
exporter.pack('My Document');
console.log('Document created succesfully at project root!');
console.log('Document created succesfully at project root!');

View File

@ -5,7 +5,7 @@ var doc = new docx.File();
var paragraph = new docx.Paragraph("Hello World");
doc.addParagraph(paragraph);
const image = doc.createImage("./demo/image1.jpeg");
const image = doc.createImage("./demo/images/image1.jpeg");
var exporter = new docx.LocalPacker(doc);
exporter.pack('My Document');

View File

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 162 KiB

View File

@ -8,7 +8,7 @@ describe("Drawing", () => {
let currentBreak: Drawing;
beforeEach(() => {
const path = "./demo/penguins.jpg";
const path = "./demo/images/image1.jpeg";
currentBreak = new Drawing({
fileName: "test.jpg",
referenceId: 1,