XML-Technologien / XSL-FO / Referenz / Antenna House Formatter XSL Extensions / Functions / rgb-icc()
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
Category Extended Functions
The format of the argument which the rgb-icc function can accept is as follows. An identifier beginning with # is case insensitive. Formats using identifiers which begins with # are extended specifications in AH Formatter V6.3. The specified RGB is an alternative color. It is used when the devices (display etc.) cannot display CMYK or the separation color directly.
Specifies Grayscale. The depth in color can be specified by <Scale>.
rgb-icc(#CMYK,<C>,<M>,<Y>,<K>)
Specifies CMYK. When RGB is omitted, it is calculated from CMYK.
rgb-icc(<R>,<G>,<B>,#Separation,<Name>,<Tint>,<C>,<M>,<Y>,<K>) no-LT
rgb-icc(<R>,<G>,<B>,#Separation,<Name>,<Tint>) no-LT
rgb-icc(<R>,<G>,<B>,#Separation,<Name>) no-LT
rgb-icc(#Separation,<Name>,<Tint>,<C>,<M>,<Y>,<K>) no-LT
Specifies Separation color (Spot color). The name of the ink in use is specified as <Name>. For example, specify "PANTONE 131 PC". The color tone is specified as <Tint>. When <Tint> is omitted, it is considered as 1.0. It is also necessary to specify RGB or CMYK. When RGB is omitted, it is calculated from CMYK.
rgb-icc(#Separation,<Name>,<Tint>) no-LT
rgb-icc(#Separation,<Name>) no-LT
If you purchase AH Formatter PANTONE® Option, it includes the ability for more than 1,000 PANTONE® Colors to be converted into RGB or CMYK values automatically. This is specified in the FO as follows:
rgb-icc(#Separation, 'PANTONE 131 PC')rgb-icc(#Registration,<Tint>) no-LT
rgb-icc(#Registration) no-LT
Specifies Registration color. The color tone is specified as <Tint>. When <Tint> is omitted, it is considered as 1.0. Registration color is used for the registered trademark outputted to all the color versions. Registration color can also be expressed by specifying "All" as the <Name> of #Separation.
Arguments take the following values, respectively.
<R>,<G>,<B> = % value or 0 to 255 integer value
<C>,<M>,<Y>,<K> = % value or 0.0 to 1.0 float value
<Scale> = % value or 0.0 (black) to 1.0 (white) float value
<Tint> = % value or 0.0 (lightest) to 1.0 (darkest) float value