From 20819a73685c9d51501e7ea372898777e86444ef Mon Sep 17 00:00:00 2001 From: ericdufresne Date: Wed, 22 May 2019 15:32:48 -0400 Subject: [PATCH] Fixed doc typo --- docxtpl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index 192fb56..2458827 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -391,7 +391,7 @@ class DocxTemplate(object): Syntax: tpl.replace_media('dummy_media_to_replace.png','media_to_paste.jpg') -- or -- - tpl.replace-media(io.BytesIO(image_stream), io.BytesIO(new_image_stream)) + tpl.replace_media(io.BytesIO(image_stream), io.BytesIO(new_image_stream)) Note: for images, the aspect ratio will be the same as the replaced image Note2 : it is important to have the source media file as it is required