Skip to main content
Inspiring
March 24, 2025
Answered

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

  • March 24, 2025
  • 1 reply
  • 176 views

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

 

Correct answer dimitri_cas

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

 

1 reply

dimitri_casAuthorCorrect answer
Inspiring
March 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