Skip to main content
Inspiring
June 10, 2026
Answered

Preflight profile not found by JavaScript until Preflight tool is opened

  • June 10, 2026
  • 1 reply
  • 13 views

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.

    Correct answer Randy Hagan

    This may not be the best place to get answers to your questions. While sometimes Acrobat staffers will pass through here, this primarily a user-to-user forum for users having problems working with Acrobat.

     

    I’d suggest you address these questions directly to the Adobe Developer teams directly through the Developer portal. You can get started with that by following this link.

     

    Hope this helps,

     

    Randy

    1 reply

    Randy Hagan
    Community Expert
    Randy HaganCommunity ExpertCorrect answer
    Community Expert
    June 10, 2026

    This may not be the best place to get answers to your questions. While sometimes Acrobat staffers will pass through here, this primarily a user-to-user forum for users having problems working with Acrobat.

     

    I’d suggest you address these questions directly to the Adobe Developer teams directly through the Developer portal. You can get started with that by following this link.

     

    Hope this helps,

     

    Randy