How To Install extractpdfmark on Debian 11

In this tutorial we learn how to install extractpdfmark on Debian 11. extractpdfmark is Extract page mode and named destinations as PDFmark from PDF

Introduction

In this tutorial we learn how to install extractpdfmark on Debian 11.

What is extractpdfmark

extractpdfmark is:

When you create a PDF document using a TeX system, you may include many small PDF files in the main PDF file. It is common for each of those files to use the same fonts.

If the small PDF files contain embedded font subsets, the TeX system includes them as-is in the main PDF. As a result, several subsets of the same font are embedded in the main PDF. It is not possible to remove the duplicates since they are different subsets. This vastly increases the size of the main PDF file.

On the other hand, if the small PDF files contain embedded full font sets, the TeX system also includes all of them in the main PDF. This time, the main PDF contains duplicates of the same full sets of fonts. Therefore, Ghostscript can remove the duplicates. This may considerably reduce the main PDF-file’s size.

Finally, if the small PDF files contain some fonts that are not embedded, the TeX system outputs the main PDF file with some fonts missing. In this case, Ghostscript can embed the necessary fonts. It can significantly reduce the required disk size.

Either way, when Ghostscript reads the main PDF produced by the TeX system and outputs the final PDF it does not preserve PDF page-mode and named-destinations etc. As a result, when you open the final PDF, it is not displayed correctly. Also, remote PDF links will not work.

This program is able to extract page mode and named destinations as PDFmark from PDF. By using this you can get the small PDF files that have preserved them.

There are three methods to install extractpdfmark on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install extractpdfmark Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install extractpdfmark using apt-get by running the following command:

sudo apt-get -y install extractpdfmark

Install extractpdfmark Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install extractpdfmark using apt by running the following command:

sudo apt -y install extractpdfmark

Install extractpdfmark Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install extractpdfmark using aptitude by running the following command:

sudo aptitude -y install extractpdfmark

How To Uninstall extractpdfmark on Debian 11

To uninstall only the extractpdfmark package we can use the following command:

sudo apt-get remove extractpdfmark

Uninstall extractpdfmark And Its Dependencies

To uninstall extractpdfmark and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove extractpdfmark

Remove extractpdfmark Configurations and Data

To remove extractpdfmark configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge extractpdfmark

Remove extractpdfmark configuration, data, and all of its dependencies

We can use the following command to remove extractpdfmark configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge extractpdfmark

Dependencies

extractpdfmark have the following dependencies:

References

Summary

In this tutorial we learn how to install extractpdfmark package on Debian 11 using different package management tools: apt, apt-get and aptitude.