1# 2# URL http://libharu.org/ 3# 4# Copyright 2000-2006 (c) Takeshi Kanno 5# Copyright 2007-2009 (c) Antony Dovgal et al. 6# 7 8See INSTALL for instructions on how to install libHaru. 9 10* 11* What is Haru Free PDF Library? 12* 13Haru is a free, cross platform, open-sourced software library for generating 14PDF. It supports the following features. 15 16 1. Generating PDF files with lines, text, images. 17 2. Outline, text annotation, link annotation. 18 3. Compressing document with deflate-decode. 19 4. Embedding PNG, Jpeg images. 20 5. Embedding Type1 font and TrueType font. 21 6. Creating encrypted PDF files. 22 7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI8-R). 23 8. Supporting CJK fonts and encodings. 24 25You can add the feature of PDF creation by using Haru without understanding 26complicated internal structure of PDF. 27 28* 29* The differences from the previous version 30* 31 32The biggest differences are that all code is written in C. 33To our regret, because internal structures changed greatly, The API is not 34compatible with previous version. 35 36However, the new-version has the following advantages compared with the 37previous version. 38 39 1. Supported shared-library build. 40 A new-version library is able to be built as shared-library. 41 2. The performance has been greatly improved. 42 A new-version library is about 4-15 times faster than a previous version. 43 3. Supported more features. 44 TrueType font, 128 bit encryption, arc function, and so on. 45 46* 47* Supporting platforms 48* 49Haru is written in ANSI-C and should compile easily with any compliant C 50compiler. 51I inspected Haru in the following environment and make files for these 52environments are included in a package. 53 54 1. Cygwin + GCC (Microsoft Windows) 55 2. Cygwin + MinGW (Microsoft Windows) 56 3. MSYS + MinGW (Microsoft Windows) 57 3. Microsoft VC++ (Microsoft Windows) 58 4. Borland C++ (Microsoft Windows) 59 5. GCC (Linux, FreeBSD, NetBSD, Solaris...) 60 61Also 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. 62In addition, ZLIB and PNGLIB are required when you want to use the features of 63compression and embedding PNG images. (In the case of Windows, static library 64files for several compilers are included in the package for WIndows. In the 65case of most of UNIX, these libraries are usually installed.) 66 67* 68* Available development environment 69* 70Haru can work as both a static-library (.a, .lib) and a shared-library (.so, .dll). 71When you use it as a static-library, It can be used by C and C++. 72But when you use it as a shared-library, it can be used by many development 73languages which support shared libraries. 74So far, Haru provides bindings for Ruby, Delphi/Free Pascal, and C#. 75 76If you write bindings for other programing languages, please inform me! 77 78* 79* Runtime environment of programs using Haru 80* 811. static-library 82 No runtime files are required. 83 842. shared-library 85 In Windows, you have to distribute libhpdf.dll with a program. In UNIX you 86 have to distribute libhpdf.so* with a program. 87 88 89 90NOTE: 91In the UNIX environment, there are the cases that libz.so, libpng.so.x are 92necessary. About this, please refer to the documentation of PNGLIB and ZLIB. 93 94* 95* License 96* 97Haru is distributed under the ZLIB/LIBPNG License. Because ZLIB/LIBPNG License 98is one of the freest licenses, You can use Haru for various purposes. 99 100The license of Haru is as follows. 101 102Copyright (C) 1999-2006 Takeshi Kanno 103Copyright (C) 2007-2009 Antony Dovgal 104 105This software is provided 'as-is', without any express or implied warranty. 106 107In no event will the authors be held liable for any damages arising from the 108use of this software. 109 110Permission is granted to anyone to use this software for any purpose,including 111commercial applications, and to alter it and redistribute it freely, subject 112to the following restrictions: 113 114 1. The origin of this software must not be misrepresented; you must not claim 115 that you wrote the original software. If you use this software in a 116 product, an acknowledgment in the product documentation would be 117 appreciated but is not required. 118 2. Altered source versions must be plainly marked as such, and must not be 119 misrepresented as being the original software. 120 3. This notice may not be removed or altered from any source distribution. 121 122 123* 124* Acknowledgment 125* 1261. Information-technology Promotion Agency(IPA) 127 The development of Haru has been supported by Exploratory Software Project 128 of Information-technology Promotion Agency(IPA), Japan. 129 1302. All users of libHaru. 131 We wish to thank all users of Haru. 132 In particular, we thank Thomas Nimstad, LeslieM, Par Hogberg, adenelson, 133 Riccardo Cohen, sea_sbs, Andrew. 134 They gave me very useful advices. 135 1363. Sourceforge.net 137 We would like to thank sourceForge.net for project hosting. 138 1394. Adobe Systems Inc. 140 We thank Adobe Systems Inc. for publishing PDF specification. 141 142