How to reduce pdf file size from linux

Today, I have faced a weird problem about pdf file size. I had to send email to someone with pdf file attachment. The pdf file size was too big for the mail server. I am in linux platform. I have a tool to reduce the size. Yeah...........do it..........Hmm, what is the command please?


gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=small.pdf big.pdf

Comments

Popular posts from this blog

There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server; ERROR

How to install Homebrew in Mac OSX (High Sierra)

WildFly 19 and Log4J2