Installing libHaru from Source

Home / Installing libHaru from Source

Installing libHaru from Source

December 9, 2015 | Article | No Comments

LibHaru is a free, cross platform, open source library for generating PDF files. libHaru can be used to produce PDF files, however it still lack at support for reading and editing existing PDF files.

The feature supported by libHaru:

  • Generating PDF files with lines, text, images.
  • Outline, text annotation, link annotation.
  • Compressing document with deflate-decode.
  • Embedding PNG, Jpeg images.
  • Embedding Type1 font and TrueType font.
  • Creating encrypted PDF files.
  • Using various character sets (ISO8859-1~16, MSCP1250~8, KOI8-R).
  • Supporting CJK fonts and encodings. You can add the feature of PDF creation by using HARU without understanding complicated internal structure of PDF. libHaru is written in ANSI C, so theoretically it supports most of the modern OSes.

In this article we will discuss about installing libHaru in Linux. For this purpose I use:

  1. Slackware64 14.0
  2. gcc

Obtain the Materials

libHaru use github to host the codes. To download source codes there are two methods: download as tar ball, or clone the repository.

To download the tarball, go to this link. Then, extract the content and change to its directory.

If you want to clone the repository, do this command:

git clone
cd libharu

At this point, for any method you choose, we are now at libharu root directory.


libHaru can use cmake for building. To build libHaru, do following

cmake .
make install

Note that to do installation, you should have enough privilege.

About Author

about author


A man who is obsessed to low level technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Share Buttons and Icons powered by Ultimatelysocial