XF Ultrascale 2011 provides the xf:filter extension for applying filters to images in documents. This is an attribute that can be applied to raster images inserted via fo:external-graphic objects.
Possible values are:
| • | convert-to-grayscale() - convert the image to grayscale |
| • | convert-to-cmyk() - convert the image to CMYK |
| • | convert-to-rgb() - convert the image to RGB |
Example:
<fo:external-graphic src="C:\MyImage.jpg" xf:filter="convert-to-grayscale()" />