mutool
and qpdf
provide utilities to rewrite PDF files. Options such as compress streams and garbage collect unused objects sometimes reduce the output file size. The only method that is truly effective, however, is downscaling images. Answers in this post teach you how to do that using ghostscript.