Overlapping and text wrapping

Inline images are placed in line with the text and Microsoft Word resizes the line of text accordingly. Images that are explicitly positioned can overlap with other content on the page.

Images placed with the insert_image function are positioned in the order in which they are inserted. Every image potentially overlaps any image previously inserted through the insert_image function. Ordering relatively to images inserted through other means, such as manually inserted through the Microsoft Word GUI, fields, and so on, is undefined.

By default, images are placed below the text of the document. The overtext parameter can be set to Y to put the images on top of the text.

An example is provided here.

@(insert_image (watermark;
                width:="8.5in"; height:="11in";
                x:="4.25in"; y:="5.5in"; align:="center"
                overtext:="Y"))

The preceding example adds a centered image as a watermark overlay on top of a page, such as a US Letter sized page.

By default, text runs through the images. The wrap parameter can be set to determine how text should flow around the image.

  • none (default) no wrapping -- text runs through the image.
  • topbottom -- no text to the left and right of the image.
  • square -- text wraps around the image. Space to the left and right of the image is filled with text.

An example is provided here.

@(insert_image (watermark;
                width:="2in"; height:="2in";
                x:="4.25in"; y:="5.5in"; align:="center"
                wrap:="square"))

The preceding example places a centered image on the page and wraps the text around it.