Skip to content
Prev Previous commit
Next Next commit
Missing args
  • Loading branch information
jtrain committed May 1, 2017
commit 7e2a8540d9a14c0de72a673a0193ff55ce350b09
6 changes: 4 additions & 2 deletions docx/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def add_paragraph(self, text='', style=None):
return self._body.add_paragraph(text, style)

def add_picture(
self, image_path_or_stream, width=None, height=None, inline=True):
self, image_path_or_stream, width=None, height=None,
position=None, wrap=None
):
"""
Return a new picture shape added in its own paragraph at the end of
the document. The picture contains the image at
Expand All @@ -78,7 +80,7 @@ def add_picture(
"""
run = self.add_paragraph().add_run()
return run.add_picture(
image_path_or_stream, width, height, inline=inline
image_path_or_stream, width, height, position, wrap
)

def add_section(self, start_type=WD_SECTION.NEW_PAGE):
Expand Down