Skip navigation
LingWang3
Currently Being Moderated

how to save PDF file with color profile

Apr 15, 2013 3:10 PM

Tags: #pdf #color_profiles

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

 
Replies
  • Currently Being Moderated
    Apr 23, 2013 2:46 AM   in reply to LingWang3

    Hi Ling

     

    I'm new here so I didn't try it out, but with JavaScript for Adobe I solved a similar Problem with making a correct pdf-Export setting (with the correct icc-Profile included) and applying it to the pdf-export by name.

    I guess it works in AS too. Mybe it helps.

    richard

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2013 2:41 AM   in reply to LingWang3

    Hi Ling

     

    if you make a pdf-ExportPreset were you can define your icc-Profile and everything else for the export you can use this preset with

     

    saveOps.pDFPreset("nameOfYourPreset");

     

    if you use saveOps.colorProfileID the color management must be turned ON - did you do that?

     

    My JavaScript was written for InDesign - it seems that you have more possibilities in InDesign. 

     

    richard

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 25, 2013 3:43 AM   in reply to richardhauck

    richardhauck wrote:

     

    My JavaScript was written for InDesign - it seems that you have more possibilities in InDesign. 

     

    The understatement of the year!

     

    Every time I have to script something in Illy, I feel like I have my hands tied behind my back...

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points