15 Replies Latest reply on Jan 16, 2017 6:45 AM by JJMack

    Automating the export to the tiff extension

    tokuredit Level 1

      I work with large prints on Plotters and use many PDF and Tiff files. I found here a Script that makes my life a lot easier when I need to save PDF images .... It saves all the images in a "Roland-Prints" folder in the same directory. I need a script that does this same function only in TIFF format. Is it possible to make a modification to the script? Thank you..

       

       

      Here is the script:

       

      var docRef = app.activeDocument;
      var imgName= docRef.name;
      imgName = imgName.substr(0, imgName.length -4);
      
      // Get name of Folder Path
      var docFolder = docRef.fullName.parent;
      var folderPath = docFolder.fsName;
      
      // Create a sub-folder called PDFs in the working folder
      var newPathFolder = new Folder( folderPath + "//Roland-Prints/");
      newPathFolder.create();
      
      // Flatten layers before saving
      docRef.flatten();
      
      // Save Options for PDFs
      pdfFile = new File( folderPath + "//Roland-Prints/" + imgName + ".pdf")
      pdfSaveOptions = new PDFSaveOptions()
      pdfSaveOptions.PDFCompatibility = PDFCompatibility.PDF16;
      pdfSaveOptions.colorConversion = false;
      pdfSaveOptions.destinationProfile = "U.S. Web Coated (SWOP) v2";
      pdfSaveOptions.embedColorProfile = false;
      pdfSaveOptions.optimizeForWeb = true;
      pdfSaveOptions.profileInclusionPolicy = false;
      pdfSaveOptions.encoding = PDFEncoding.JPEG;
      pdfSaveOptions.downSample = PDFResample.PDFBICUBIC;
      
      // set to NONE to allow PDF Security Options. Permission is for Printing only. A common password
      // needs to be added as soon as the file is saved without typing it in all the time
      pdfSaveOptions.PDFStandard = PDFStandard.NONE;
      
      pdfSaveOptions.downSampleSize = 200;
      pdfSaveOptions.downSampleSizeLimit = 250;
      pdfSaveOptions.layers = false;
      pdfSaveOptions.preserveEditing=false;
      pdfSaveOptions.jpegQuality = 12;
      docRef.saveAs(pdfFile, pdfSaveOptions, true, Extension.LOWERCASE);
      docRef.close(SaveOptions.DONOTSAVECHANGES);