Jetformat

Insert an image into a Word paragraph

Use jetformat word add-image to insert an image into a Word paragraph.

By Jetformat

Use an existing DOCX and a local PNG or JPEG. The image is inserted inline, so its position follows the paragraph rather than floating independently over the page.

Steps

  1. Start with a local DOCX. Replace the sample paths and identifiers with your own.
  2. Run the command below. Save to a new output path so the source remains available for comparison.
  3. Check the result as described below before using it in another job.
jetformat word add-image report.docx --paragraph 1 --image logo.png -o report-updated.docx

Options for this task

Option Meaning
--image PNG/JPEG/GIF/EMF image path
--output Output DOCX path (required)
--paragraph 1-based paragraph number (default 1)

Check the result

Convert the edited DOCX to PDF and check the image position, proportions, and surrounding line breaks.

Notes and limits

Writing an Office document uses one credit per command. See the billing guide for the current rules.

The examples keep the original file. Add --force only when you intend to overwrite an existing output. Run jetformat word add-image --help to compare options with your installed version.

See the word command reference for the surrounding workflow.

Last updated