libHaru is moved to libharu.org
Introduction
What is Haru Free PDF
Library?
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, MSCP1250~8, KOI-8R).
- Supporting CJK fonts and encodings.
You can add the feature of PDF creation by using HARU without
understanding complicated internal structure of PDF.
Supporting platforms
HARU is written in ANSI-C and should compile
easily with any compliant C compiler.
I tested HARU in the following environment and make files for these environments are included in a package.
In addition, ZLIB and PNGLIB are required when you want to use the features of compression and embedding PNG images. (In the case of Windows, static library files for several compilers are included in the package for WIndows. In the case of most of UNIX, these libraries are usually installed.)
I tested HARU in the following environment and make files for these environments are included in a package.
- Cygwin + GCC (Microsoft Windows)
- Cygwin + MinGW (Microsoft Windows)
- Microsoft VC++ (Microsoft Windows)
- Borland C++ (Microsoft Windows)
- GCC (Linux, FreeBSD, NetBSD...)
In addition, ZLIB and PNGLIB are required when you want to use the features of compression and embedding PNG images. (In the case of Windows, static library files for several compilers are included in the package for WIndows. In the case of most of UNIX, these libraries are usually installed.)
Available development environment
HARU can work as both static-library (.a, .lib)
and shared-library (.so, .dll).
When you use it as static-library, It can be used by C and a C++.
But when you use it as shared-library, it can be used by many development languages which support shared library.
libharu provides bindings for Ruby and Delphi/Free Pascal and C#(Microsoft .NET platform).
When you use it as static-library, It can be used by C and a C++.
But when you use it as shared-library, it can be used by many development languages which support shared library.
libharu provides bindings for Ruby and Delphi/Free Pascal and C#(Microsoft .NET platform).
Runtime environment of programs using Haru
1. static-library
No runtime files are required.
2. shared-library
In Windows, you have to distribute libhpdf.dll with a program. In UNIX
you have to distribute libhpdf.so* with a program.
NOTE:
In the UNIX environment, there are the cases that libz.so, libpng.so.x are necessary. About this, please refer to the documentation of PNGLIB and ZLIB.
In the UNIX environment, there are the cases that libz.so, libpng.so.x are necessary. About this, please refer to the documentation of PNGLIB and ZLIB.
License
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.
The license of HARU is as follows.
The license of HARU is as follows.
Copyright (C) 1999-2006 Takeshi Kanno
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:
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:
- 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.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
Acknowledgment
The development of HARU has been supported by Exploratory
Software Project of Information-technology Promotion Agency(IPA),
Japan.
- All users of libharu
We wish to thank all users of HARU.
In particular, we thank Thomas Nimstad, LeslieM, Par Hogberg, adenelson, Riccardo Cohen, sea_sbs, Andrew. They gave me very useful advices.
In particular, we thank Thomas Nimstad, LeslieM, Par Hogberg, adenelson, Riccardo Cohen, sea_sbs, Andrew. They gave me very useful advices.
We thank to sourceForge.net for project hosting.
We thank Adobe Systems Inc. for publishing PDF
specification.