module HexaPDF::Type::Annotations::InteriorColor

This module provides a convenience method for getting and setting the interior color for various annotations.

See: PDF2.0 s12.5

Public Instance Methods

interior_color → color or nil
interior_color(*color) → line

Returns the interior color or nil (in case the interior color should be transparent) when no argument is given. Otherwise sets the interior color and returns self.

How the interior color is used depends on the concrete annotation type. For line annotations, for example, it is the color to fill the line endings

color

The interior color. See HexaPDF::Content::ColorSpace.device_color_from_specification for information on the allowed arguments.

If the special value :transparent is used when setting the color, no color is used for filling the line endings.