You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
See INSTALL for instructions on how to install libHaru.
What is Haru Free PDF Library?
Haru is a free, cross platform, open-sourced software library for generatingPDF. 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, KOI8-R).
Supporting CJK fonts and encodings.
You can add the feature of PDF creation by using Haru without understandingcomplicated internal structure of PDF.
The differences from the previous version
The biggest differences are that all code is written in C.To our regret, because internal structures changed greatly, The API is notcompatible with previous version.
However, the new-version has the following advantages compared with theprevious version.
Supported shared-library build.A new-version library is able to be built as shared-library.
The performance has been greatly improved.A new-version library is about 4-15 times faster than a previous version.
Supported more features.TrueType font, 128 bit encryption, arc function, and so on.
Supporting platforms
Haru is written in ANSI-C and should compile easily with any compliant Ccompiler.I inspected Haru in the following environment and make files for theseenvironments are included in a package.
Cygwin + GCC (Microsoft Windows)
Cygwin + MinGW (Microsoft Windows)
MSYS + MinGW (Microsoft Windows)
Microsoft VC++ (Microsoft Windows)
Borland C++ (Microsoft Windows)
GCC (Linux, FreeBSD, NetBSD, Solaris...)
Also on platforms except the above, it is easy to build HARU. If you success to build HARU on other platforms, please send makefile to me.In addition, ZLIB and PNGLIB are required when you want to use the features ofcompression and embedding PNG images. (In the case of Windows, static libraryfiles for several compilers are included in the package for WIndows. In thecase 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 developmentlanguages which support shared library.So far, Haru provides bindings for Ruby, Delphi/Free Pascal and C#.
If you write bindings for other programming languages, please notice me!
Runtime environment of programs using Haru
static-libraryNo runtime files are required.
shared-libraryIn Windows, you have to distribute libhpdf.dll with a program. In UNIX youhave to distribute libhpdf.so* with a program.
NOTE:In the UNIX environment, there are the cases that libz.so, libpng.so.x arenecessary. About this, please refer to the documentation of PNGLIB and ZLIB.
License
Haru is distributed under the ZLIB/LIBPNG License. Because ZLIB/LIBPNG Licenseis one of the freest licenses, You can use Haru for various purposes.
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 theuse of this software.
Permission is granted to anyone to use this software for any purpose,includingcommercial applications, and to alter it and redistribute it freely, subjectto the following restrictions:
The origin of this software must not be misrepresented; you must not claimthat you wrote the original software. If you use this software in aproduct, an acknowledgment in the product documentation would beappreciated but is not required.
Altered source versions must be plainly marked as such, and must not bemisrepresented as being the original software.
This notice may not be removed or altered from any source distribution.
Acknowledgment
Information-technology Promotion Agency(IPA)The development of Haru has been supported by Exploratory Software Projectof 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.
Adobe Systems Inc.We thank Adobe Systems Inc. for publishing PDF specification.