InDesign script can't seem to set the exported color conversion to NONE
I have an in design script and part of it is to export selected images to PDF. I want to set the PDF output color conversion to none so there is no color conversion happening, but I can't seem to find the right code to make that work. does anybody know the proper way to do this?
with (app.pdfExportPreferences) {
pageRange = pageNumber;
acrobatCompatibility = AcrobatCompatibility.acrobat6;
exportGuidesAndGrids = false;
exportLayers = false;
exportNonPrintingObjects = false;
exportReaderSpreads = false;
generateThumbnails = false;
try { ignoreSpreadOverrides = false; } catch (e) {}
includeBookmarks = false;
includeHyperlinks = true;
includeICCProfiles = false;
includeSlugWithPDF = false;
includeStructure = false;
interactiveElementsOption = InteractiveElementsOptions.doNotInclude;
subsetFontsBelow = 100;
colorBitmapCompression = BitmapCompression.NONE;
colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;
colorBitmapSamplingDPI = 400;
grayscaleBitmapCompression = BitmapCompression.NONE;
grayscaleBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;
grayscaleBitmapSamplingDPI = 400;
monochromeBitmapCompression = BitmapCompression.NONE;
monochromeBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;
monochromeBitmapSamplingDPI = 1200;
compressionType = PDFCompressionType.compressNone;
compressTextAndLineArt = true;
cropImagesToFrames = true;
optimizePDF = true;
colorConversion = PDFColorConversion.NONE; //How do i get this to work?
//colorConversion = app.pdfExportPreferences.colorConversion.NONE;
destinationProfile = "";
//destinationProfile = "GRACoL2013_CRPC6"; // optional?
includeICCProfiles = true;
}