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