How can I linearize (web-optimize) a random pdf with ghostscript (v9.18)? I know there is qpdf, but I want to explicitly use gs.
Doing it with this command leads to a broken pdf which I am unable to open:
gs -dNOPAUSE -dFastWebView -sDEVICE=pdfwrite -sOUTPUTFILE=test.pdf -dBATCH growth_in_time_debt_aer.pdf