Step by step - Learn how to use callas productscallas pdfToolbox Variables and JavaScript, Ask-at-runtime dialogUsing JavaScript for pop up values in "Arbitrary JavaScript controlled Fixups"

Using JavaScript for pop up values in "Arbitrary JavaScript controlled Fixups"

When creating your Fixups using "Arbitrary JavaScript controlled Fixups", you may also want to know what internal values may be used for a pop up control in the "regular" Fixup. In this article, we use "Extract CMYK from DeviceN".

There is a pop up "Action" with two possible values.

  • Splitting to DeviceCMYK color space (extend missing colorants)
  • Splitting to DeviceN color space (extend missing process colors)

In order to find out what internal strings you may use in  "Arbitrary JavaScript controlled Fixups", you use the blue info icon in that Fixup and select "Open list of all base Fixups".

It will open a list of all existing Fixup properties in your web browser. There you would (as in our example above) search for "extract_cmyk_from_devicen" which would then show you something like:

This lists the possible values for "action" which are "split_to_devicecmyk" and "split_to_devicen".

Additional information regarding  Convert colors

As already mentioned, the list contains all internal values that are possible for a particular Fixup. 

Unfortunately, if you want to use the Convert Colors Fixup, the list is not clear about which values are valid for a particular parameter in the "Advanced setting" tab. 

Therefore, a list of all valid values for each parameter is provided here.

Valid values for "advanced_settings"
Parameter Value
cmykgraph_renderingintent "ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"cmykimage_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"rgbgraph_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"rgbimage_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"graygraph_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"grayimage_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"labgraph_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"labimage_renderingintent"

"ignore_parameter"
"use_rendering_intent_of_document"
"relativecolorimetric"
"absolutecolorimetric"
"perceptual"
"saturation"
"convert_as_defined_for_color_space_gray"
"cmykgraph_c_eq_m_eq_y_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"cmykimage_c_eq_m_eq_y_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"rgbgraph_r_eq_g_eq_b_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"rgbimage_r_eq_g_eq_b_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"graygraph_setgraycolorspaceto"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"convert_as_defined_for_color_space_gray"

"grayimage_setgraycolorspaceto"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"convert_as_defined_for_color_space_gray"
"labgraph_a_eq_b_eq_0_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"labimage_a_eq_b_eq_0_is_black"

"ignore_parameter"
"devicegray"
"devicecmyk_black"
"separation_black"
"cmykgraph_c_eq_m_eq_y_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"cmykimage_c_eq_m_eq_y_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"rgbimage_r_eq_g_eq_b_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"rgbgraph_r_eq_g_eq_b_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"labgraph_a_eq_b_eq_0_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"labimage_a_eq_b_eq_0_is_black_excludeblendmodes"

"ignore_parameter"
"normal"
"multiply"
"screen"
"overlay"
"darken"
"lighten"
"colordodge"
"colorburn"
"hardlight"
"softlight"
"difference"
"exclusion"
"hue"
"saturation"
"color"
"luminosity"
"cmykgraph_handleprocesscolorindevicen_separationasdevicecmyk"

"ignore_parameter"
"treat_process_colors_in_devicen_or_separation_as_spot_colors"
"treat_process_colors_in_devicen_and_separation_as_devicecmyk"
"cmykimage_handleprocesscolorindevicen_separationasdevicecmyk"

"ignore_parameter"
"treat_process_colors_in_devicen_or_separation_as_spot_colors"
"treat_process_colors_in_devicen_and_separation_as_devicecmyk"
"cmykgraph_advancedcolorconversion"

"ignore_parameter"
"no_special_treatment"
"apply_dot_gain_difference"
"cmykimage_advancedcolorconversion"

"ignore_parameter"
"no_special_treatment"
"apply_dot_gain_difference"
"graygraph_advancedcolorconversion" "ignore_parameter"
"no_special_treatment"
"apply_dot_gain_difference"
"grayimage_advancedcolorconversion" "ignore_parameter"
"no_special_treatment"
"apply_dot_gain_difference"
"compressionmethod" "ignore_parameter"
"keep_compression_method"
"compress_all_to_zip"
"compress_all_to_jpeg"
"destination_jpegquality" "ignore_parameter"
"minimum"
"low"
"medium"
"high"
"maximum"
"destination_settransparencyblendspacetodest" "ignore_parameter"
"leave_unchanged"
"set_to_destination_icc_profile"
"set_to_destination_as_device_color_space"
"set_to_destination_if_equal_to_output_intent"
"ignore_parameter"