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