Skip to main content

Insert picture

Insert an image file at the start or end of the document, after a marker text or at a bookmark, optionally sized and aligned.

Command in the Word toolkit · id ooa.word/insert_picture · 9 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
ImageFileYesImage file (PNG, JPEG, GIF, BMP, TIFF, EMF or WMF).
WidthNumberNoWidth in points (72 per inch); the height keeps the aspect ratio. Original size when empty.
After textStringNoPut the picture in a new paragraph after the paragraph with this text; at the end when empty.
Alt textStringNoAlternative text, also used later by find_replace_picture.
SessionStringNowordSession name.
HeightNumberNoHeight in points; with width both are used as given, alone the width keeps the aspect ratio.
PositionStringNoendWhere the picture goes when after_text and bookmark are empty: end or start of the document.
BookmarkStringNoPut the picture in a new paragraph after the paragraph holding this bookmark.
AlignmentStringNoHorizontal alignment of the picture's paragraph; unchanged when empty.