var opt=new PDFSaveOptions(); opt.colorDownsampling = 96; var f=new File("~/Desktop/SamplePDF.pdf"); app.activeDocument.saveAs(f, opt);