Package org.apache.padaf.preflight.graphics

Examples of org.apache.padaf.preflight.graphics.ICCProfileWrapper


        return new ValidationError(
            ERROR_GRAPHIC_OUTPUT_INTENT_ICC_PROFILE_TOO_RECENT, "Invalid version of the ICCProfile");
      } // else seems less than 2, so correct

      if (handler.getIccProfileWrapper() == null) {
        handler.setIccProfileWrapper(new ICCProfileWrapper(iccp));
      }
     
      // ---- keep reference to avoid multiple profile definition
      mapDestOutputProfile.put(new COSObjectKey((COSObject) destOutputProfile),
          true);
View Full Code Here


   * @param expectedType
   * @return
   */
  private boolean validColorSpaceDestOutputProfile(ColorSpaceType expectedType) {
    boolean result = false;
    ICCProfileWrapper profileWrapper = documentHandler.getIccProfileWrapper();
    if (profileWrapper != null) {
      switch (expectedType) {
      case RGB:
        result = profileWrapper.isRGBColorSpace();
        break;
      case CMYK:
        result = profileWrapper.isCMYKColorSpace();
        break;
      default:
        result = true;
        break;
      }
View Full Code Here

   * Search the RGB Profile in OutputIntents dictionaries
   *
   * @return true if a rgb profile is found, false otherwise.
   */
  protected boolean searchRGBProfile() {
    ICCProfileWrapper iccpw = this.handler.getIccProfileWrapper();
    if (iccpw != null) {
      return iccpw.isRGBColorSpace();
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.apache.padaf.preflight.graphics.ICCProfileWrapper

Copyright © 2018 www.massapicom. 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.