2 Replies Latest reply on Feb 16, 2015 1:39 AM by selvam214

    PDF Export not working

    selvam214 Level 1

      Hi,

      I'm using the CS6 (8.0.2), the script as below for export pdf. While using this script, no changes the below highlighted options (in bold) and the result is RGB, but my document is CMYK and I want same.

       

      Actual issue:

      1. Once cleared the preferences, the RGB color-space applied in document, after using this script, the output also same in RGB.

      2. If any manual setting used with RGB as earlier, the same setting followed ofter ran this script.

       

      If I've missed anything with this code? Can you please clear this issue.

       

       

       

      var myFile = new File(x);

      with (myDoc.viewPreferences) {

      rulerOrigin = RulerOrigin.pageOrigin;

      horizontalMeasurementUnits = MeasurementUnits.inches;

      verticalMeasurementUnits = MeasurementUnits.inches;

      }

      with(app.pdfExportPreferences){

      var myRange = myPageRanges.editContents;

          var myRangeString = myRange + "";

          if (myRadioButtonGroup.selectedButton==1){

              pageRange =  myRangeString;

          }

          else {

          pageRange =  PageRange.allPages;

          }

       

      acrobatCompatibility = AcrobatCompatibility.acrobat7;//After modification this, occurred the issue

      standardsCompliance = PDFXStandards.PDFX42010_STANDARD;//After modification this, occurred the issue

      exportGuidesAndGrids = false;

      exportLayers = false;

      exportNonPrintingObjects = false;

      exportReaderSpreads = false;

      generateThumbnails = false;

      try{

      ignoreSpreadOverrides = false;

      }

      catch(e){}

      includeBookmarks = false;

      includeHyperlinks = false;

      includeICCProfiles = false;

      includeSlugWithPDF = true;

      includeStructure = false;

      exportWhichLayers = ExportLayerOptions.exportVisibleLayers;

      interactiveElements = false;

      optimizePDF = false;

      viewPDF = true;

       

      colorBitmapSampling = Sampling.bicubicDownsample;

      colorBitmapSamplingDPI = 600;

      colorBitmapCompression = BitmapCompression.zip;

      grayscaleBitmapCompression = BitmapCompression.zip;

      grayscaleBitmapSampling = Sampling.bicubicDownsample;

      grayscaleBitmapSamplingDPI = 600;

      monochromeBitmapCompression = MonoBitmapCompression.CCIT4;

      monochromeBitmapSampling = Sampling.none;

      compressionType = PDFCompressionType.compressNone;

      compressTextAndLineArt = true;

      cropImagesToFrames = false;

       

      pageMarksOffset = "0.4167 in";

      colorBars = false;

      bleedMarks = false;

      cropMarks = true;

      pageInformationMarks = true;

      registrationMarks = true;

      pdfMarkType = 1147563124;

       

      bleedChain = false;

      bleedTop = "0.6667 in";

      bleedBottom = "0.6667 in";

      bleedInside = 0;

      bleedOutside = "0.6667 in";

      printerMarkWeight = PDFMarkWeight.p25pt;

       

      pdfColorSpace = PDFColorSpace.unchangedColorSpace; // not get the result effectively

       

      try{

      includeICCProfiles = ICCProfiles.includeNone;

      } catch (err) {}

       

      subsetFontsBelow = 0;

       

      try{

      simulateOverprint = false;

      }

      catch(e){}

      omitBitmaps = false;

      omitEPS = false;

      omitPDF = false;