1 Reply Latest reply on Apr 16, 2013 4:00 PM by Muppet Mark

    How to use action script to save PDF file with color profile

    LingWang3

      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;

                                             

                 doc.saveAs(pdfFile, saveOps);

       

      But got following errors: error an Illustrator error occurred: 1346458189 ('PARM'). 

       

      What is the correct way to save PDF file with color profile?

       

      Thanks!

      Ling