From 883e9f7e0b9b7ff065bd8b7d2faea7d1a180ae1c Mon Sep 17 00:00:00 2001 From: Vishesh Mangla <40588378+XtremeGood@users.noreply.github.com> Date: Mon, 3 May 2021 22:58:56 +0530 Subject: [PATCH] Added attribute names for InlineImage --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 860117b..e8bea61 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -219,7 +219,7 @@ Inline image You can dynamically add one or many images into your document (tested with JPEG and PNG files). just add ``{{ }}`` tag in your template where ```` is an instance of doxtpl.InlineImage:: - myimage = InlineImage(tpl,image_descriptor='test_files/python_logo.png',width=Mm(20), height=Mm(10)) + myimage = InlineImage(tpl, image_descriptor='test_files/python_logo.png', width=Mm(20), height=Mm(10)) You just have to specify the template object, the image file path and optionnally width and/or height. For height and width you have to use millimeters (Mm), inches (Inches) or points(Pt) class.