pdfdecompress command not found

In this troubleshooting guide we learn how to fix pdfdecompress command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

pdfdecompress: command not found

or when using sudo you get the following error message

sudo: pdfdecompress: command not found

Solutions to pdfdecompress: command not found

How To Fix pdfdecompress: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pdfdecompress is provided by origami-pdf package.

origami-pdf is:

Origami is a PDF-compliant parser. It provides a scripting tool to generate and analyze malicious PDF files. It can also be used to create on-the-fly customized PDFs, or to inject (evil) code into already existing documents.

This package contains command line tools to analyse and manipulate PDF’s as well as a GUI tool to explore the structure of PDF files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install origami-pdf

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install origami-pdf.

sudo apt -y install origami-pdf

Or if you have aptitude installed you can use the following command.

sudo aptitude install origami-pdf

Summary

In this tutorial we learn how to fix pdfdecompress command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.