Skip to main content

Borders on Selected Images Only (PDF)

You can set borders on individual images and these borders will override any borders that are set in the PDF layout. For example, if your PDF layout sets all images to have a black dashed border, you could set one image to have a dotted red border. That image's own settings (dotted red border) take priority over the border settings in the layout.

To set the borders on a specific image:

  1. Open a topic that contains the image you want to have borders.

  2. Select the image

  3. Select the imagedata element in the Element Structure Menu and choose Go to element.

  4. Make sure that your image has a width attribute and a value. This has to be set on the imagedata element.

    To add a width attribute, select the image and then select its imagedata element in the Element Structure Menu. Select Go to element, and then in the Element attributes section, add the width attribute and value.

    The Element Attributes section in Paligo. Here, it shows the fileref and ID, a width attribute that is set to 50%, and an xinfo:image ID. There is an add attribute field at the bottom.
  5. Use the Add attribute field to give the imagedata element the role attribute.

  6. For the role attribute value, enter the border settings, for example:

    border: 0.25pt solid silver; border-radius: 3pt; padding: 15pt;

    The syntax here is similar to that used for CSS and HTML, but only border, border-radius, and padding properties are supported.

    Use semi-colons to separate the settings. The example above shows a border that is 0.25pt wide, solid line, and silver. It has a border radius of 3pt (rounded corners) and interior spacing (padding) of 15pt.

  7. Select Save. Save icon.

When you publish to PDF, the image will have the border settings that you applied specifically to that image, rather than those defined in the PDF layout.