I am using this command with gs 9.5 for LaTeX pdfs
gswin64c -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=foo-compressed.pdf foo.pdf
All works well, except that single pages I rotated in LaTeX from Landscape to Portrait (e.g. wide Tables) appear in the GS output again in Landscape format. The original LaTeX PDF looks fine, the PDF file output of LaTeX is simply too large (over 100MB)
Is there a way to stop gs rotating single pages?