Linux

Installing pdftk on Ubuntu 17.04 LTS

Example of installing pdftk on Ubuntu 17.04 LTS using the command sudo apt-get install pdftk.

Quick installation of pdftk:

Step 1: Update system:

sudo apt-get update

Step 2: Install: pdftk

Ater updaing the OS run following command to install the packae:

sudo apt-get install pdftk

Package Details

Package:pdftk
Version:2.02-4build1
Maintainer:Ubuntu Developers
Home page:https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Description:tool for manipulating PDF documents 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)
Distro:Ubuntu 17.04
Release:
Repo/Section:universe/text

How to install pdftk on Ubuntu 17.04?

First of all update your system with the command:

sudo apt-get update

Above command will download the package lists for Ubuntu 17.04 on your system. This will update the list of newest versions of packages and its dependencies on your system.

After downloading the latest package list with the help of above you can run the installation process.

If pdftk is not installed on your compter then the command 'dpkg -L pdftk' will give followin error.

deepak@deepak-VirtualBox:~$ dpkg -L pdftk
dpkg-query: package 'pdftk' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
deepak@deepak-VirtualBox:~$ 

Installing pdftk:

After system update use the following command to install pdftk:

sudo apt-get install pdftk

Above command will confirm before installing the package on your Ubuntu 17.04 Operating System. If you are not already logged in as su, installer will ask you the root password. After completion of the installation you can use the package on your system.

How to uninstall/remove pdftk from Ubuntu 17.04?

Now we will see the commands for uninstalling the pdftk from Ubuntu 17.04. For uninstalling this package you can easily use the apt command and remove the package from Linux Operating System.

To remove the pdftk following command is used:

sudo apt-get remove  pdftk

Following command is used to remove the pdftk package along with its dependencies:

sudo apt-get remove --auto-remove pdftk

This will remove pdftk and all its dependent packages which is no longer needed in the system.

Completely removing pdftk with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge pdftk

or you can use following command also:

sudo apt-get purge --auto-remove pdftk

Above command will remove all the configuration files and data associated with pdftk package. You can can't recover the delete data, so, use this command with care.

Get our newsletter

Categories