Class NoPatternColorSpaceHelper

  • All Implemented Interfaces:
    ColorSpaceHelper

    public class NoPatternColorSpaceHelper
    extends StandardColorSpaceHelper
    This class defines restrictions on Pattern ColorSpace. It checks the consistency of the Color space with the DestOutputIntent, if the color space is a Pattern the validation will fail.
    • Constructor Detail

      • NoPatternColorSpaceHelper

        public NoPatternColorSpaceHelper​(PreflightContext _context,
                                         org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)
    • Method Detail

      • processPatternColorSpace

        protected void processPatternColorSpace​(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
        This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.
        Overrides:
        processPatternColorSpace in class StandardColorSpaceHelper