Install HTMLDoc on Ubuntu 18.04

Introduction

HTMLDoc will dynamically parse Postscript (PDF 1.6) documents from correctly written Hypertext (HTML 3.2). In this tutorial, you will learn what is needed to install HTMLDoc on Ubuntu 18.04.

Once HTMLDoc has been installed, we shall continue by creating a simple one-page document, with no headers, footers, borders or extras. In essence, an HTML template capable of taking advantage of the entire printable area of a PDF document.

Preparing Ubuntu 18.04 (x64) for HTMLDoc

For this tutorial, we will be working with Vultr’s Ubuntu 18.04 (x64) server with IPv4. Keep in mind, this works the same with IPv6 only servers as well. First things first, we need to check for updates for installed packages, more so considering most all distributions of Linux are not configured to install security patches or system updates automatically. Furthermore, installing updates to the software, as well as the kernel itself, is always advised, especially when dealing with a new installation.

Now, we need to check to see if there are any updates or upgrades available for your system:

apt-get update && apt-get upgrade -y

We can now install HTMLDoc:

apt-get install htmldoc -y

You are now ready to start generating PDF documents from HTML markup.

Generating Your First PDF from HTML

Let’s quickly test this newfound capability from the command-line. Move over to the /tmp/ directory for testing:

cd /tmp/

Now, let’s create a simple HTML document, which we will use to generate a PDF document. We can call it markup-source.html:

nano markup-source.html

Add the following HTML markup to it:

<html>
<head>
    <title>My first PDF from HTML</title>
</head>
<body>
    This is the body of my first PDF document made from HTML.
</body>
</html>

Save it by hitting CTRL + X to exit Nano editor, then input Y to save the changes. You can now instruct HTMLDoc to parse a PDF document from your markup-source.html file:

htmldoc --webpage -f postscript-output.pdf markup-source.html

You will now have a new file named postscript-output.pdf with a title of "My first PDF from HTML" and a body of "This is the body of my first PDF document made from HTML". Congratulations, you have learned how to turn simple HTML markup to highly transportable PostScript PDF documents.


How to Install Apache Cassandra 3.11.x on Ubuntu 16.04 LTS

How to Install Apache Cassandra 3.11.x on Ubuntu 16.04 LTS

Using a Different System? Apache Cassandra is a free and open source NoSQL database management system that is designed to provide scalability, hig

Kako instalirati osTicket na FreeBSD 12

Kako instalirati osTicket na FreeBSD 12

Korištenje drugog sustava? osTicket je sustav za kupnju ulaznica otvorenog koda za korisničku podršku. OsTicket izvorni kod je javno hostiran na Githubu. U ovom vodiču

Install HTMLDoc on CoreOS

Install HTMLDoc on CoreOS

Using a Different System? HTMLDoc will dynamically parse Postscript (PDF 1.6) documents from correctly written Hypertext (HTML 3.2). This will allow you t

How to Install Thelia 2.3 on Ubuntu 16.04

How to Install Thelia 2.3 on Ubuntu 16.04

Using a Different System? Thelia is an open source tool for creating e-business websites and managing online content written in PHP. Thelia source code i

How to Install Thelia 2.3 on CentOS 7

How to Install Thelia 2.3 on CentOS 7

Using a Different System? Thelia is an open source tool for creating e-business websites and managing online content, written in PHP. Thelia source code i

How to Install and Configure Graphite on CentOS 7

How to Install and Configure Graphite on CentOS 7

Using a Different System? Introduction Graphite is a highly scalable real-time graphing system that can be used to gather various system information an

How to Install Apache Cassandra 3.11.x on Debian 9

How to Install Apache Cassandra 3.11.x on Debian 9

Using a Different System? Apache Cassandra is a free and open source NoSQL database management system that is designed to provide scalability, hig

Install HTMLDoc on Debian 9

Install HTMLDoc on Debian 9

Using a Different System? Introduction HTMLDoc will dynamically parse Postscript (PDF 1.6) documents from correctly written Hypertext (HTML 3.2). This wil

Install HTMLDoc on Ubuntu 18.04

Install HTMLDoc on Ubuntu 18.04

Using a Different System? Introduction HTMLDoc will dynamically parse Postscript (PDF 1.6) documents from correctly written Hypertext (HTML 3.2). In thi

How to Install DokuWiki on Ubuntu 16.04 LTS

How to Install DokuWiki on Ubuntu 16.04 LTS

Using a Different System? DokuWiki is an open source wiki program written in PHP that doesnt require a database. It stores data in text files. DokuWik

How to Install Omeka Classic 2.4 CMS on a CentOS 7 LAMP VPS

How to Install Omeka Classic 2.4 CMS on a CentOS 7 LAMP VPS

Using a Different System? Omeka Classic 2.4 CMS is a free and open source digital publishing platform and Content Management System (CMS) for sharing digita

How to Install Redaxscript 3.2 CMS on a CentOS 7 LAMP VPS

How to Install Redaxscript 3.2 CMS on a CentOS 7 LAMP VPS

Using a Different System? Redaxscript 3.2 CMS is a modern and ultra lightweight, free and open source Content Management System (CMS) with rocket-fas

How to Install Craft CMS on Ubuntu 16.04 LTS

How to Install Craft CMS on Ubuntu 16.04 LTS

Using a Different System? Craft CMS is an open source CMS written in PHP. Craft CMS source code is hosted on GitHub. This guide will show you how to instal

How to Install MyBB on CentOS 7

How to Install MyBB on CentOS 7

Using a Different System? MyBB is a free and open source, intuitive and extensible forum program. MyBB source code is hosted on GitHub. This guide will sho

Install HTMLDoc on Fedora 29

Install HTMLDoc on Fedora 29

Using a Different System? HTMLDoc will dynamically parse Postscript (PDF 1.6) documents from correctly written Hypertext (HTML 3.2). This will allow you t

How to Install BlogoText CMS on a CentOS 7 LAMP VPS

How to Install BlogoText CMS on a CentOS 7 LAMP VPS

Using a Different System? BlogoText CMS is a simple and lightweight, free and open source Content Management System (CMS) and minimalist blog engine

Uspon strojeva: primjene AI u stvarnom svijetu

Uspon strojeva: primjene AI u stvarnom svijetu

Umjetna inteligencija nije u budućnosti, ovdje je upravo u sadašnjosti. U ovom blogu Pročitajte kako su aplikacije umjetne inteligencije utjecale na različite sektore.

DDOS napadi: kratak pregled

DDOS napadi: kratak pregled

Jeste li i vi žrtva DDOS napada i zbunjeni ste metodama prevencije? Pročitajte ovaj članak kako biste riješili svoje upite.

Jeste li se ikada zapitali kako hakeri zarađuju novac?

Jeste li se ikada zapitali kako hakeri zarađuju novac?

Možda ste čuli da hakeri zarađuju mnogo novca, ali jeste li se ikada zapitali kako zarađuju toliki novac? raspravimo.

Revolucionarni Googleovi izumi koji će vam olakšati život.

Revolucionarni Googleovi izumi koji će vam olakšati život.

Želite li vidjeti revolucionarne izume Googlea i kako su ti izumi promijenili život svakog čovjeka danas? Zatim čitajte na blogu kako biste vidjeli Googleove izume.

Friday Essential: Što se dogodilo s automobilima s umjetnom inteligencijom?

Friday Essential: Što se dogodilo s automobilima s umjetnom inteligencijom?

Koncept samovozećih automobila koji će krenuti na ceste uz pomoć umjetne inteligencije san je koji već neko vrijeme imamo. No, unatoč nekoliko obećanja, nigdje ih nema. Pročitajte ovaj blog kako biste saznali više…

Tehnološka singularnost: daleka budućnost ljudske civilizacije?

Tehnološka singularnost: daleka budućnost ljudske civilizacije?

Kako se znanost razvija velikom brzinom, preuzimajući mnoge naše napore, raste i rizik da se podvrgnemo neobjašnjivoj Singularnosti. Pročitajte što bi za nas mogla značiti singularnost.

Evolucija pohrane podataka – Infografika

Evolucija pohrane podataka – Infografika

Metode pohrane podataka su se razvijale možda od rođenja podataka. Ovaj blog pokriva evoluciju pohrane podataka na temelju infografike.

Funkcionalnosti slojeva referentne arhitekture velikih podataka

Funkcionalnosti slojeva referentne arhitekture velikih podataka

Pročitajte blog kako biste na najjednostavniji način upoznali različite slojeve u arhitekturi velikih podataka i njihove funkcionalnosti.

6 nevjerojatnih prednosti posjedovanja pametnih kućnih uređaja u našim životima

6 nevjerojatnih prednosti posjedovanja pametnih kućnih uređaja u našim životima

U ovom digitalnom svijetu, pametni kućni uređaji postali su ključni dio života. Evo nekoliko nevjerojatnih prednosti pametnih kućnih uređaja o tome kako naš život čine vrijednim življenja i jednostavnijim.

Ažuriranje dodataka macOS Catalina 10.15.4 uzrokuje više problema nego što ih rješava

Ažuriranje dodataka macOS Catalina 10.15.4 uzrokuje više problema nego što ih rješava

Nedavno je Apple izdao macOS Catalina 10.15.4 dodatak ažuriranju kako bi riješio probleme, ali čini se da ažuriranje uzrokuje više problema koji dovode do zalijevanja mac strojeva. Pročitajte ovaj članak da biste saznali više