module HexaPDF::Content::RenderingIntent

Defines all available rendering intents as constants. For use with HexaPDF::Content::GraphicsState#rendering_intent.

See: PDF1.7 s8.6.5.8

Constants

ABSOLUTE_COLORIMETRIC

Colors should be represented solely with respect to the light source.

PERCEPTUAL

Colous should be represented in a manner that provides a pleasing perceptual appearance.

RELATIVE_COLORIMETRIC

Colous should be represented with respect to the combination of the light source and the output medium's white point.

SATURATION

Colors should be represented in a manner that preserves or emphasizes saturation.

Public Class Methods

normalize(intent)

Returns the argument normalized to a valid rendering intent.

  • If the argument is a valid symbol, it is just returned.

  • Otherwise an error is raised.