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 Check 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".