Skip to main content
Zantcor
Inspiring
February 13, 2015
Answered

eps save options

  • February 13, 2015
  • 1 reply
  • 896 views

I have a long script that works but the save options are giving me problems;

    var saveName = new File ("S:/STE2/STE2_BAGS/" + fileName);
    saveOpts = new EPSSaveOptions();
    saveOpts.compatibility = Compatibility.ILLUSTRATOR13;
    saveOpts.generateThumbnails = true;
    saveOpts.preserveEditability = true;
    saveOpts.useArtboards = true;
    saveOpts.preserveapperance = true;  
    saveOpts.artBoardClipping = true;
   

saveOpts.artboardrange.string(1);

I can't get it to save with the "Use Artboards" checked when saving as an EPS and to set it up to save with Range 1 all I need to do is add that last line correct?  It's hard to test this as it is auto deleted after it is received in the desired folder and when you open the file it dosn't show that the "Use Artboards" setting is checked.

I can write some code but there are so many things are easy to messup any help is appreciated.

This topic has been closed for replies.
Correct answer CarlosCanto

you're missing a property, and some others properties are incorrect or not applicable to EPS

to use artboards you need these 2 properties

saveOpts.saveMultipleArtboards = true;

saveOpts.artboardRange = "1"; // artboard # 1

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
February 14, 2015

you're missing a property, and some others properties are incorrect or not applicable to EPS

to use artboards you need these 2 properties

saveOpts.saveMultipleArtboards = true;

saveOpts.artboardRange = "1"; // artboard # 1

Zantcor
ZantcorAuthor
Inspiring
February 16, 2015

Thank you again CarlosCanto, I looked under the object viewer but it seems like it doesn't list all the options and the few options that I tried wasn't throwing errors but wasn't working correctly either.

Thanks Carlos.