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:
- Slackware64 14.0
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 https://github.com/libharu/libharu.git 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 make install
Note that to do installation, you should have enough privilege.library