module HexaPDF::Content::RenderingIntent
def self.normalize(intent)
* If the argument is a valid symbol, it is just returned.
Returns the argument normalized to a valid rendering intent.
def self.normalize(intent) case intent when ABSOLUTE_COLORIMETRIC, RELATIVE_COLORIMETRIC, SATURATION, PERCEPTUAL intent else raise ArgumentError, "Invalid rendering intent: #{intent}" end end