How To Install pdftk-java on Fedora 36

In this tutorial we learn how to install pdftk-java in Fedora 36. pdftk-java is GCJ-free toolkit for manipulating PDF documents

Introduction

In this tutorial we learn how to install pdftk-java on Fedora 36.

What is pdftk-java

If PDF is electronic paper, then pdftk-java is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. PDFtk is a simple tool for doing everyday things with PDF documents PDF pages into a new document, decrypt input as necessary (password required), encrypt output as desired, burst a PDF document into single pages, report on PDF metrics, including metadata and bookmarks, uncompress and re-compress page streams, and repair corrupted PDF (where possible). Pdftk-java is a port of the original GCJ-based PDFtk to Java. The GNU Compiler for Java (GCJ) is a portable, optimizing, ahead-of-time compiler for the Java programming language, which had no new developments since 2009 and was finally removed in 2016 from the GCC development tree before the release of GCC 7.

We can use yum or dnf to install pdftk-java on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pdftk-java.

Install pdftk-java on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pdftk-java using dnf by running the following command:

sudo dnf -y install pdftk-java

Install pdftk-java on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pdftk-java using yum by running the following command:

sudo yum -y install pdftk-java

How To Uninstall pdftk-java on Fedora 36

To uninstall only the pdftk-java package we can use the following command:

sudo dnf remove pdftk-java

pdftk-java Package Contents on Fedora 36

/usr/bin/pdftk
/usr/share/doc/pdftk-java
/usr/share/doc/pdftk-java/CHANGELOG.md
/usr/share/doc/pdftk-java/README.md
/usr/share/java/pdftk.jar
/usr/share/licenses/pdftk-java
/usr/share/licenses/pdftk-java/LICENSE
/usr/share/licenses/pdftk-java/License-Adobe.txt
/usr/share/licenses/pdftk-java/apache_license_2.txt
/usr/share/licenses/pdftk-java/gnu_lgpl_license_2.txt
/usr/share/man/man1/pdftk.1.gz

References

Summary

In this tutorial we learn how to install pdftk-java on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).