Skip to main content

Borders for Images (PDF)

For PDF outputs, you can add borders around images. For example, you could add a pink dotted line around your images, like this:

Image of a mars rover robot. It has a pink dotted border around the edge.

It's also possible to add borders around the space that contains the image on a page.

When setting the image borders for PDFs, you can use the:

  • PDF layout to set the default image borders that will apply to all images, inline images, figures, and informal figures.

  • role attribute to define specific image border styles that will only apply to one specific image.

Note

For information on adding borders for HMTL outputs, see Borders for Images (HTML).