setpdfmetadata command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
setpdfmetadata: command not found
or when using sudo you get the following error message
sudo: setpdfmetadata: command not found
Solutions to setpdfmetadata: command not found
How To Fix setpdfmetadata: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu setpdfmetadata is provided by pdfproctools package.
pdfproctools is:
This package contains tools for PDF file processing.
SetPDFMetadata updates the metadata of a PDF file. In particular, it can be used to add outlines (bookmarks) to a document. Furthermore, it can set the document properties (e.g. author, title, keywords, creator, producer).
PDFEmbedFonts embeds all referenced fonts into a PDF file. Optionally, it can also linearize the PDF file for online publication (“fast web view”, “optimized”).
To fix this problem, we can install more using the command below.
sudo apt-get -y install pdfproctools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pdfproctools.
sudo apt -y install pdfproctools
Or if you have aptitude installed you can use the following command.
sudo aptitude install pdfproctools
Summary
In this tutorial we learn how to fix setpdfmetadata command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.