This is a fork of the original libharu Github repo.
This fork will be the solely maintained version of libharu C library. For language bindings, please create new repos.
- About Haru Free PDF Library
- Getting started
- Supporting platforms
- Language Bindings
- License
- Acknowledgment
Haru is a free, cross platform, open-sourced software library for generating PDF. It supports the following features.
- 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 set (ISO8859-1
16, MSCP12508, 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.
Refer to installation.md for the required libzlib and libpng libraries which are dependencies for libharu
Once your dependencies are resolved (Most linux systems won't have this issue)
git clone https://github.com/Himujjal/libharu
cd libharu
./buildconf.sh # used to make ./configure file
./configure && make && make install
This is only for MinGW-GCC compiler in Windows. For MSVC refer to installation
# TODO
# TODO
Haru is written in ANSI-C and should compile easily with any compliant C compiler. The following environments are tested and have their own build instructions
- MSYS + MinGW (Microsoft Windows)
- Microsoft VC++ (Microsoft Windows)
- GCC (Linux, FreeBSD, NetBSD, Solaris...)
Haru can work as both a static-library (.a, .lib) and a shared-library (.so, .dll).
Haru is available in different languages as bindings
NimRustC++JavaScriptNodeJSWASM
DartPythonGoPHP.NETC#F#
JVMScala- ~~Java~~~
Kotlin
Kotlin/Native
Haru is distributed under the ZLIB/LIBPNG License. Because ZLIB/LIBPNG License is one of the freest licenses, You can use Haru for various purposes.
Copyright (C) 1999-2006 Takeshi Kanno
Copyright (C) 2007-2009 Antony Dovgal
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any purpose,including
commercial applications, and to alter it and redistribute it freely, subject
to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim
that you wrote the original software. If you use this software in a
product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
-
Takeshi Kanno and Antony Dovgal for their efforts into building the first version of libHaru.
-
Adobe Systems Inc. We thank Adobe Systems Inc. for publishing PDF specification.