JavaScript CS EPSPreview.NONE doesn't exist in Illustrator CS

Ask a Question related to Adobe Illustrator Windows, Design and Development.

  1. #1

    Default JavaScript CS EPSPreview.NONE doesn't exist in Illustrator CS

    Hi I have a script that saves a document as an EPS with no previews or thumbnails (required by pagination engine).

    This worked fine in Illustrator 10 but throws an Invalid Enumeration Value error in CS. I have checked the documentation and the EPSPreview ENUM should according to it have a NONE value. Has anyone else seen this and no of a workaround????

    I searched the knowledgebase but could find no reference.

    Code Snippet as follows:-

    newSaveOptions = new EPSSaveOptions();
    newSaveOptions.cmykPostScript = true;
    newSaveOptions.compatibility = Compatibility.ILLUSTRATOR10;
    newSaveOptions.embedAllFonts = true;
    newSaveOptions.preview = EPSPreview.NONE;
    newSaveOptions.includeDocumentThumbnails = false;
    theFile = new File(newDocName);
    myDoc.saveAs(theFile, newSaveOptions);

    myDoc.close(SaveOptions.DONOTSAVECHANGES);

    Thanks
    Greg
    groods@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Use Javascript in Illustrator to associate color of PathItem to a swatch item?
      Hi all illustrator experts, I am using illustrator CS and want to use javascript to associate the color of PathItem to a swatch. Is it possible or...
    2. Photoshop CS and Illustrator CS - Exporting Paths to Illustrator problem...
      I have an image in Photoshop. I created a path on it and did export paths to illustrator. Saved a illustrator file and opened in Illustrator CS....
    3. need javascript staff (anyone who knows javascript peroid) (READ)
      hey its me ultimategamerx and im back in some clothes lol i need some people who know java script i need help please reply if ya know some
    4. using 'exist'
      GO select * from publishers where exists ( select distinct * from titles where titles.pub_id = publishers.pub_id and type = 'business' --select...
  3. #2

    Default Re: JavaScript CS EPSPreview.NONE doesn't exist in Illustrator CS

    You may wish to post this also in the Scripting Applications Forum:

    [url]http://www.adobeforums.com/cgi-bin/webx?14@@.eea5b36[/url]


    LenHewitt@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139