How to Reduce PDF File Size in Linux

Written by chris hoffman Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Reduce PDF File Size in Linux
(George Doyle/Stockbyte/Getty Images)

PDF files are portable document format files originally created by Adobe. PDF files look the same on every computer, unlike Web pages. By default, PDF files preserve as much image quality as possible. For example, if you convert a high-resolution image to a PDF file, that PDF file remains very large. This is intended so that no quality is lost; if you go to print the PDF, it will have the same quality level as the original image. However, often the exact detail of the PDF doesn't matter, but the file size does.

Skill level:

Other People Are Reading


  1. 1

    Open a Terminal by clicking "Applications," "Accessories" or "System Tools" and "Terminal."

  2. 2

    Navigate to the folder containing the PDF file with the "cd" command. For example, navigate to the default Documents directory by typing "cd Documents" into the Terminal window and pressing "Enter."

  3. 3

    Type "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=setting -sOutputFile=output.pdf input.pdf" into the Terminal window, replacing "input.pdf" with the name of your PDF file and "setting" with a desired quality level, and then press "Enter."

    Quality level settings are "/screen," the lowest resolution and lowest file size, but fine for viewing on a screen; "/ebook," a midpoint in resolution and file size; "/printer" and "/prepress," high-quality settings used for printing PDFs.

Tips and warnings

  • Be sure to include the forward slash at the start of the quality level setting name after "-dPDFSETTINGS=" in the gs command's syntax.
  • Reducing a PDF file's size decreases its image quality. For some PDFs the difference may not be noticeable, and for some it will. Check your output file first before deleting the original file. If "/screen" is too low quality, try "/ebook."

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.