diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-01 21:59:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-01 21:59:37 +0100 |
| commit | a70e8e05948c593fdc253b6d0a256d7aa656d988 (patch) | |
| tree | 369f835579f914b236d5770b93fad625a72fbeb0 /lib/documents.js | |
| parent | 7bfcfcfe2012f9be26e93b06f7c1a09e1ec52ae7 (diff) | |
Add reading of inline pictures
Diffstat (limited to 'lib/documents.js')
| -rw-r--r-- | lib/documents.js | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
