How To Install extractpdfmark on Fedora 34

extractpdfmark is Extract page mode and named destinations as PDFmark from PDF

Introduction

In this tutorial we learn how to install extractpdfmark on Fedora 34.

What is extractpdfmark

When you create a PDF document using something like a TeX system you may include many small PDF files in the main PDF file. It is common for each of the small PDF 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 correctly. 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.

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

Install extractpdfmark on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install extractpdfmark

Install extractpdfmark on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install extractpdfmark

How To Uninstall extractpdfmark on Fedora 34

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

sudo dnf remove extractpdfmark

extractpdfmark Package Contents on Fedora 34

/usr/bin/extractpdfmark
/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/3b4e6d4c218cc178ab4293c67a87ca2792ff53
/usr/share/doc/extractpdfmark
/usr/share/doc/extractpdfmark/NEWS
/usr/share/doc/extractpdfmark/README.ja.md
/usr/share/doc/extractpdfmark/README.md
/usr/share/licenses/extractpdfmark
/usr/share/licenses/extractpdfmark/COPYING
/usr/share/man/man1/extractpdfmark.1.gz

References

Summary

In this tutorial we learn how to install extractpdfmark on Fedora 34 using yum and dnf.