Image Filters

Top Previous Topic Next Topic  Print this topic

XF Rendering Server 2013 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

 

Usage:

 

 

       <fo:external-graphic src="C:\MyImage.jpg" xf:filter="convert-to-grayscale()" />

 

 

 

Initial picture

 

xf-filter-1

 

xf:filter="convert-to-grayscale()"

 

xf-filter-2

 

xf:filter="convert-to-cmyk()"

 

xf-filter-3

 

xf:filter="convert-to-rgb()"

 

xf-filter-4