Only if you have a Preflight profile that does that. Then you can simply
execute it using the preflight() method.
I am not really too sure on the exact settings for doing this preflight.
I have also seen on Acrobat X a feature called Reduce File Size and wonder if it would do the same job?