Currently I use TeXWorks or WinEdt to generate my PDF then open a command window and execute the following to compress the file:
>gswin64c.exe -sDEVICE=pdfwrite -dMaxSubsetPct=100 -dPDFSETTINGS=/ebook -sOutputFile="file_out.pdf" -dNOPAUSE -dBATCH "file.pdf"
Is there a way to automatically include this into the build PDF functions of either TeXWorks or WinEdt? It's a trivial extra step, but one I would like to omit.