Preflight profile not found by JavaScript until Preflight tool is opened
I have a question about Acrobat Preflight and JavaScript.
I’m using the built-in Preflight profile “Convert to sRGB” from JavaScript via:
Preflight.getProfileByName(“Convert to sRGB”)
I noticed that the profile could not be found until the Preflight tool had been opened/added in the Acrobat interface. After that, the exact same JavaScript code was able to find the profile.
Is this expected behaviour?
Does the Preflight JavaScript API require the Preflight tool to be initialized in the user interface before built-in profiles become available to scripts?
Or should built-in profiles always be available through Preflight.getProfileByName(), regardless of whether the user has opened the Preflight tool?
I’m trying to understand whether this is by design or whether something is misconfigured on my system.
