🎄Holiday Sale! Save up to 43% on UPDF! Buy and get extra months of AI membership and free templates! Learn more

How to Compress PDF on Linux? (Steps with Pictures)

Is your PDF file too big to send via email or for uploading? Do you want to know how to compress PDF on Linux? If yes, then you are at the right place!

This is a very common issue. Big PDF files can be hard to share or store, so you might need to make them smaller.

This article will show you how you can compress PDFs on Linux. We will explain different methods with their step-by-step guides.

We will also discover a handy tool called UPDF in case that you are using Windows and Mac. With UPDF, you can quickly reduce the size of your PDF files. Download it before we get started!

Windows • macOS • iOS • Android 100% secure

Part 1. Compress PDF on Linux with Command Line

The first method you can try to compress PDF in Linux is using Ghostscript. This is a command-line tool that comes in Debian or Ubuntu. This software recognizes the file type and makes it compatible so your Linux device can read it.

You can follow the steps given below to compress PDF with the command line.

Step 1: First, open the terminal of your Linux system by pressing "Ctrl + Alt + T."

open terminal of your linux.

Step 2: If you don't have Ghostscript installed on your system, insert the following command and hit enter. It might ask for your password.

Command: sudo apt-get install ghostscript

Step 3: You can enter the "cd" command to open the directory containing your PDF file.

access your pdf file in linux.

Step 4: Then, enter the following command. Replace the "input.pdf" with the file name you want to compress and "output.pdf" with the desired output name.

Command: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

 enter the command in linux terminal.

Step 5: Once the command runs, you will find your compressed PDF file in the same directory.

So, this is how to compress PDF Linux with command line. Remember, this method is generally helpful when compressing a smaller PDF file. You can try the next method without a command line for higher compression.

Part 2. Compress PDF on Linux without Command Line

You can also compress PDF in Linux without the command line. This method is for users who can't run Ghostscript. Various online tools are available that can perform PDF-related tasks. In this section, we will explore one of the popular ones. You can walk through its step-by-step instructions and get it done.

Here is how to compress PDF on Linux without the command line:

Step 1: Open any browser on your Linux system and visit the official Smallpdf website. Then, click the "Compress" option in the top menu bar.

open the official website of smallpdf.

Step 2: Click the "Choose Files" button to upload the PDF file you want to compress. You can also drag and drop it here.

upload the pdf file with smallpdf

Step 3: Once the PDF file is successfully uploaded, you will see this interface. Select the compression intensity from "Basic" or "Strong" and click the "Compress" button. It will start compressing your file.

select the compression intensity and proceed in smallpdf

(Note: For strong compression, you need to use the paid version of Smallpdf. However, you can use it for free once.)

Step 4: When the compressing process is completed, you can click the "Download" button to download the file. You can also click "Export As" to export it in other formats.

download the compressed file.

Did you see how easy it is to compress PDF in Linux? With these types of tools, you can perform all PDF-related tasks with just a click. They are not only limited to Linux. If you are also a Windows or Mac OS user, we have another amazing option for you!

Let's explore how to compress the PDF file on Windows or Mac!

Also Read: How to Edit PDFs on Linux: A Guide to Master Document Modifications

Part 3. Bonus Tip: Compress PDF File on Windows and Mac

If you need to compress PDF files on Windows and Mac, you can use UPDF. This tool offers a range of other features for managing your PDFs. UPDF provides a free trial, making it easy to test out before purchasing.

The price is very affordable, and a single license works on both Windows and Mac, making it a great value! UPDF also offers an AI Assistant to make your experience even better.

Steps to Compress PDF on Windows/Mac Using UPDF

If you have downloaded the UPDF app, you can follow the instructions given below:

Windows • macOS • iOS • Android 100% secure

(We are using Windows OS)

Step 1: Open the UPDF app on your desktop, and click "Open File" to open your PDF document. You can also drag and drop it here.

open your pdf file with updf

Step 2: When your PDF file is opened, click the "Save as Other" button in the right panel. Then, select the "Reduce File Size" option.

Step 3: Now, you are supposed to choose the output quality of your document from highest to lowest and click "Save As."

select the output quality in UPDF

After clicking the save as button, you will be asked for the location where you want to save your compressed document. Choose the location and save it.

So, are you ready to try UPDF? If yes, then download it today and explore its capabilities. Furthermore, if you want to see it in action? Check out this informative video:

Windows • macOS • iOS • Android 100% secure

Final Words

Wrapping it up! Compressing PDF files on Linux can be easy with the right tools. Whether you prefer using the command line or web-based tools, this guide has shown you how to compress PDF on Linux.

However, for Windows and Mac users, UPDF is a great choice. It offers many features, a free trial, and affordable pricing. Don’t let large files slow you down. Download UPDF today to optimize and manage your PDF documents hassle-free.

% OFF
$  
  OFF
You can use this limited time coupon to purchase designated UPDF PRO or AI products.

Get limited
time coupons!

Click to receive and use it
Extra {couponPrice}% off coupon Extra ${couponPrice} coupon

We use cookies to ensure you get the best experience on our website. Continued use of this website indicates your acceptance of our privacy policy.