|
Converts the specified pages from one color space to
another.
The destination color space is specified by assigning a value to
the DestinationColorSpace
property. All images used on the page are converted to the new
color space. All color operators used in the page content stream
are converted to the new color space.
Annotations and fields are not part of the page but instead
float over the page. You can choose whether to convert the
appearance stream of any annotations or leave them in their native
color space. This is controlled using the ConvertAnnotations
property.
Colors can only be sensibly mapped from one color space to
another if we know something about the characteristics of the color
space. If your color spaces do not contain this information (e.g.
if they are device color spaces) then ABCpdf will use a default
color profile.
An exception will be thrown if the operation is not possible.
This may happen if the IndirectObjects provided are not in an
ObjectSoup or if the destination ColorSpace is in some way
invalid.
As part of the Recolor process, all images used on the page(s)
are also recolored. (See also PixMap.Recolor.)
After the recolor process has been completed these PixMap objects
will no longer be compressed. You may wish to analyse and
recompress these images by pre and post processing them during the
ProcessingObject
and ProcessedObject
events.
| Although the Recolor operation is designed to convert a
document to a single color space, such as CMYK, with actual colors
unchanged, it can also be used to convert a document to a single,
different, color. When you add a spot color (please see AddColorSpaceSpot)
and make it the destination color space, the conversion will be to
shades of the spot color specified. |
|