How To Install pdf2htmlex on Debian 9

In this tutorial we learn how to install pdf2htmlex on Debian 9. pdf2htmlex is Converts PDF to HTML while retaining most formatting

Introduction

In this tutorial we learn how to install pdf2htmlex on Debian 9.

What is pdf2htmlex

pdf2htmlex is:

pdf2htmlEX converts PDF to HTML while retaining text, format and style as much as possible by making use of HTML5, JavaScript and modern CSS features. Even difficult content like PDFs with embedded fonts, multicolumn documents, scientific papers with complicated figures and mathematical formulas will mostly be represented correctly. Fallback mode generates HTML pages which do not require any JavaScript to view them correctly at the expense of a larger file size.

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

Install pdf2htmlex Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install pdf2htmlex

Install pdf2htmlex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pdf2htmlex

Install pdf2htmlex 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 pdf2htmlex using aptitude by running the following command:

sudo aptitude -y install pdf2htmlex

How To Uninstall pdf2htmlex on Debian 9

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

sudo apt-get remove pdf2htmlex

Uninstall pdf2htmlex And Its Dependencies

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

sudo apt-get -y autoremove pdf2htmlex

Remove pdf2htmlex Configurations and Data

To remove pdf2htmlex configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge pdf2htmlex

Remove pdf2htmlex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pdf2htmlex

Dependencies

pdf2htmlex have the following dependencies:

References

Summary

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