Covers multiple methods to reduce PDF file sizes on Linux. The primary approach uses Ghostscript with the -dPDFSETTINGS=/ebook preset, which typically achieves 40-60% size reduction. Also covers ps2pdf as a shorter Ghostscript wrapper, ImageMagick for image-only PDFs with direct DPI and quality control, cpdf -squeeze for lossless structural cleanup without touching image data, and GUI options via PDF Arranger and LibreOffice Draw. Includes diagnosing the root cause of large PDFs using pdfinfo and pdfimages, handling scanned PDFs with grayscale conversion, and a batch compression bash script for processing multiple files at once.
Table of contents
IntroductionKey TakeawaysWhat Causes Large PDF File Sizes on LinuxMethod 1: Compress PDF Using Ghostscript (Recommended)Method 2: Compress PDF Using ps2pdf and pdf2psMethod 3: Compress PDF Using ImageMagickMethod 4: Compress PDF Using cpdfMethod 5: Compress PDF Using GUI Tools on LinuxHow to Compress Scanned PDF Files in LinuxHow to Batch Compress Multiple PDF Files in LinuxTool Comparison: Choosing the Right PDF Compression MethodFrequently Asked Questions (FAQ)ConclusionSort: