Technologies XML / XSL-FO / Référence / Fonctions de XSL-FO / rgb-icc

(Extrait de « XSL-FO ― Die Referenz » de Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Section de la recommandation : 5.10.2

Catégorie : 5.10.2 Fonctions de couleur

La fonction rgb-icc renvoie une couleur particulière d’un profil ICC. Le quatrième paramètre nomme le profil. Les trois premiers définissent une couleur RGB de remplacement si le profil est indisponible. La couleur du profil est déterminée par une suite d’une ou plusieurs composantes réelles après le paramètre de nom. La syntaxe et les restrictions peuvent varier selon le formateur.

Valeurs

color rgb-icc(numeric, numeric, numeric, NCName, numeric, numeric)

Version XSL-FO : 1.0

Prise en charge :

Niveau de conformité

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Étendu

O

O

P

?

O

Exemple XSL-FO :

<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm
                      0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="26mm 55mm 41mm 55mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
<fo:color-profile color-profile-name="RGBColorProfile" src="CoatedFOGRA27.icc"/>
</fo:declarations>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:block color="rgb-icc(47,0,255,RGBColorProfile, 0.816, 1.000, 0.000,
                        0.000)">
rgb-icc(47,0,255,RGBColorProfile, 0.816, 1.000, 0.000, 0.000)
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Télécharger les exemples

Dans la sortie :

haut de page