From a70e8e05948c593fdc253b6d0a256d7aa656d988 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 1 Apr 2013 21:59:37 +0100 Subject: Add reading of inline pictures --- lib/documents.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/documents.js') diff --git a/lib/documents.js b/lib/documents.js index 8fc3df7..b28281f 100644 --- a/lib/documents.js +++ b/lib/documents.js @@ -33,8 +33,16 @@ function ElementWithChildren(type) { }; } +function Image(read) { + return { + type: "image", + read: read + }; +} + exports.Document = Document; exports.Paragraph = Paragraph; exports.Run = Run; exports.Text = Text; exports.Hyperlink = Hyperlink; +exports.Image = Image; -- cgit v1.2.3