I tried following action script code to save PDF file with color profile attached:
var saveOps: PDFSaveOptions = new PDFSaveOptions();
saveOps.colorConversionID = ColorConversion.COLORCONVERSIONTODEST;
saveOps.colorDestinationID = ColorDestination.COLORDESTINATIONWORKINGCMYK;
saveOps.colorProfileID = ColorProfile.INCLUDEDESTPROFILE;
But got following errors: error an Illustrator error occurred: 1346458189 ('PARM').
What is the correct way to save PDF file with color profile?
Locally you can call using presets by name as option for your options… The dev center readme on PARM errors suggests it can be down to variable clobbering… Save quit and restart AI & the ESTK and retry also look at wrapping your code in functions ( this may help )