Package org.apache.padaf.preflight.graphics.color

Examples of org.apache.padaf.preflight.graphics.color.ColorSpaceHelper.validate()


        csHelper = ColorSpaceHelperFactory.getColorSpaceHelper(csInlinedBase,
            documentHandler, ColorSpaceRestriction.ONLY_DEVICE);
      }
      List<ValidationError> errors = new ArrayList<ValidationError>();
      try {
        if (!csHelper.validate(errors)) {
          ValidationError ve = errors.get(0);
          throwContentStreamException(ve.getDetails(), ve.getErrorCode());
        }
      } catch (ValidationException e) {
        throw new IOException(e.getMessage());
View Full Code Here


          ColorSpaceRestriction.NO_RESTRICTION);
    }

    List<ValidationError> errors = new ArrayList<ValidationError>();
    try {
      if (!csHelper.validate(errors)) {
        ValidationError ve = errors.get(0);
        throwContentStreamException(ve.getDetails(), ve.getErrorCode());
      }
    } catch (ValidationException e) {
      //      throw new IOException(e.getMessage(), e); java 6
View Full Code Here

        result.add(new ValidationError(ERROR_GRAPHIC_UNEXPECTED_VALUE_FOR_KEY, "ImageMask entry is true, BitsPerComponent must be 1."));
      }

    } else {
      ColorSpaceHelper csh = ColorSpaceHelperFactory.getColorSpaceHelper(csImg, handler, ColorSpaceRestriction.NO_PATTERN);
      csh.validate(result);
    }
  }

  private boolean isImageMaskTrue() {
    COSBase imgMask = this.xobject.getItem(COSName.getPDFName("ImageMask"));
View Full Code Here

    COSBase csImg = shadingDict.getItem(COSName
        .getPDFName(XOBJECT_DICTIONARY_KEY_COLOR_SPACE));
    ColorSpaceHelper csh = ColorSpaceHelperFactory.getColorSpaceHelper(csImg,
        documentHandler, ColorSpaceRestriction.NO_PATTERN);
    return csh.validate(errors);
  }

  /**
   * Check the Extended Graphic State contains in the ShadingPattern dictionary
   * if it is present. To check this ExtGState, this method uses the
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.