This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license contained in the file LICENSE in this distribution. Refer to licensing information at http://www.artifex.com or contact

a PS CIE color space or a PS color space. These are 1-way color spaces and cannot be used for group color spaces */if(gs_color_space_is_PSCIE(params.ColorSpace))params.ColorSpace=NULL;elseif(gs_color_space_is_ICC(params.ColorSpace)&&params.ColorSpace->cmm_icc_profile_data!=NULL&&params.ColorSpace->cmm_icc_profile_data->profile_handle!=NULL){

/* Lets make sure that it is not an ICC color space that came from a PS CIE color space or a PS color space. These are 1-way color spaces and cannot be used for group color spaces */if(gs_color_space_is_PSCIE(params.ColorSpace))params.ColorSpace=NULL;elseif(gs_color_space_is_ICC(params.ColorSpace)&&params.ColorSpace->cmm_icc_profile_data!=NULL&&params.ColorSpace->cmm_icc_profile_data->profile_handle!=NULL){

}return0;}/* depth .pushpdf14devicefilter - *//* this is a filter operator, but we include it here to maintain modularity of the pdf14 transparency support */staticintzpushpdf14devicefilter(i_ctx_t*i_ctx_p){intcode;os_ptrop=osp;

/* Bug 698087: In case some program uses our .pushpdf14devicefilter make *//* sure that the device knows that we are using the pdf14 *//* transparency. Note this will close and re-open the device *//* and erase the page. This should not occur with PDF files. */if(cdev->page_uses_transparency==0){gs_c_param_listlist;boolbool_true=1;gs_c_param_list_write(&list,imemory);

/* This is used to communicate to the transparency compositor when a q (save extended graphic state) occurs. Since the softmask is part of the graphic state we need to know this to handle clist processing properly */staticintzpushextendedgstate(i_ctx_t*i_ctx_p){intcode;code=gs_push_transparency_state(igs);return(code);}/* This is used to communicate to the transparency compositor when a Q (restore extended graphic state) occurs. Since the softmask is part of the graphic state we need to know this to handle clist processing properly */staticintzpopextendedgstate(i_ctx_t*i_ctx_p){intcode;

/* ------ Initialization procedure ------ *//* We need to split the table because of the 16-element limit. */constop_defztrans1_op_defs[]={{"1.setblendmode",zsetblendmode},{"0.currentblendmode",zcurrentblendmode},{"1.setopacityalpha",zsetopacityalpha},{"0.currentopacityalpha",zcurrentopacityalpha},{"1.setshapealpha",zsetshapealpha},{"0.currentshapealpha",zcurrentshapealpha},{"1.settextknockout",zsettextknockout},{"0.currenttextknockout",zcurrenttextknockout},