12 Replies Latest reply on Nov 26, 2012 11:29 AM by Larry G. Schneider

    Javascript : Ai Conversion to Tif Bug


      Hi everyone!


      I have just installed Illustrator CS6 and i'm trying to make a script to convert Ai files from a folder to Tif in another folder.


      The script is running ok but i have a problem with the LZW compression of the exported Tif.


      in the doc :  http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scrip ting/cs6/Illustrator-Scripting-Reference-JavaScript.pdf



      at the page 62 we have the Tif properties and the following example :


      Exporting to TIFF format

      // Exports current document to dest as a TIFF file with specified

      // options, dest contains the full path including the file name

      function exportFileToPSD (dest) {

      if ( app.documents.length > 0 ) {

      var exportOptions = new ExportOptionsTIFF();

      var type = ExportType.TIFF;

      var fileSpec = new File(dest);

      exportOptions.resolution = 150;

      exportOptions.byteOrder = TIFFByteOrder.IBMPC;

      exportOptions.IZWCompression = false;

      app.activeDocument.exportFile( fileSpec, type, exportOptions );



      Well the function name seems a nice copy paste from the PSD page but that's not the problem.


      The problem is the IZWCompression properties that doesn't work with the value true.


      First of all i was thinking that IZW doesn't exist it should be LZW but even with the line  exportOptions.LZWCompression = true;  it doesn't work too.


      Does someone encounter the same problem ?