pdftk.pdftk-java command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pdftk.pdftk-java: command not found
or when using sudo you get the following error message
sudo: pdftk.pdftk-java: command not found
Solutions to pdftk.pdftk-java: command not found
How To Fix pdftk.pdftk-java: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pdftk.pdftk-java is provided by pdftk-java package.
pdftk-java is:
If PDF is electronic paper, then PDFtk is an electronic stapler-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. PDFtk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to:
- Merge PDF documents
- Split PDF pages into a new document
- Decrypt input as necessary (password required)
- Encrypt output as desired
- Fill PDF Forms with FDF Data and/or Flatten Forms
- Apply a Background Watermark
- Report PDF on metrics, including metadata and bookmarks
- Update PDF Metadata
- Attach Files to PDF Pages or the PDF Document
- Unpack PDF Attachments
- Burst a PDF document into single pages
- Uncompress and re-compress page streams
- Repair corrupted PDF (where possible)
To fix this problem, we can install more using the command below.
sudo apt-get -y install pdftk-java
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pdftk-java.
sudo apt -y install pdftk-java
Or if you have aptitude installed you can use the following command.
sudo aptitude install pdftk-java
Summary
In this tutorial we learn how to fix pdftk.pdftk-java command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.