Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

• Embed the working profile in an open document via a Javascript script (before saving)

Enthusiast ,
Mar 24, 2025 Mar 24, 2025

Hi -

 

I'd like to force to embed a profile into the currently open document, before saving it.

That profile is "Working CMYK: Coated FOGRA39 (ISO 12647-2:2004)"

I try this but apparently it doens't work:

 

var aiSaveOptions_DC = new IllustratorSaveOptions();
    aiSaveOptions_DC.embedICCProfile = true; // Ensure ICC profile is embedded
    aiSaveOptions_DC.colorProfileID = ColorProfile.COATEDFOGRA39; // Set the CMYK profile to "Coated FOGRA39 (ISO 12647-2:2004)"

 

 

Many thx for any help.

Enjoy your day.

 

 

 

- Dimitri

 

TOPICS
Scripting
76
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Mar 24, 2025 Mar 24, 2025

Hello…

 

I figured out…

The correct answer to embed the "Working CMYK: Coated FOGRA39 (ISO 12647-2:2004)" is: 

var pdfExportLowOptions_DC = new PDFSaveOptions();
    pdfExportLowOptions_DC.pDFPreset = lowResPresetName_DC;
    pdfExportLowOptions_DC.colorProfileID = ColorProfile.INCLUDEALLPROFILE;

 

My mistake, since I copy-paste the code generated by ChatGPT (without really checking)…

cheers

 

 

 - Dimitri

 

Translate
Adobe
Enthusiast ,
Mar 24, 2025 Mar 24, 2025
LATEST

Hello…

 

I figured out…

The correct answer to embed the "Working CMYK: Coated FOGRA39 (ISO 12647-2:2004)" is: 

var pdfExportLowOptions_DC = new PDFSaveOptions();
    pdfExportLowOptions_DC.pDFPreset = lowResPresetName_DC;
    pdfExportLowOptions_DC.colorProfileID = ColorProfile.INCLUDEALLPROFILE;

 

My mistake, since I copy-paste the code generated by ChatGPT (without really checking)…

cheers

 

 

 - Dimitri

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines