Represents an image in a WordprocessingML document.
ImageRun embeds an image within a run, supporting various formats including JPG, PNG, GIF, BMP, and SVG.
Reference: http://officeopenxml.com/drwPicInline.php
new ImageRun({ data: fs.readFileSync("./image.png"), transformation: { width: 100, height: 100, }, type: "png",}); Copy
new ImageRun({ data: fs.readFileSync("./image.png"), transformation: { width: 100, height: 100, }, type: "png",});
Do not use this method. It is only used internally by the library. It will be removed in a future version.
Represents an image in a WordprocessingML document.
ImageRun embeds an image within a run, supporting various formats including JPG, PNG, GIF, BMP, and SVG.
Reference: http://officeopenxml.com/drwPicInline.php
Example