OSDN Git Service

binding with libharu.
[putex/putex.git] / src / texsourc / lib / libhpdf / README
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
8 See INSTALL for instructions on how to install libHaru.
9
10 *
11 * What is Haru Free PDF Library?
12 *
13 Haru is a free, cross platform, open-sourced software library for generating 
14 PDF. 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
25 You can add the feature of PDF creation by using Haru without understanding 
26 complicated internal structure of PDF.
27
28 *
29 * The differences from the previous version 
30 *
31
32 The biggest differences are that all code is written in C. 
33 To our regret, because internal structures changed greatly, The API is not 
34 compatible with previous version.
35
36 However, the new-version has the following advantages compared with the 
37 previous 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 *
49 Haru is written in ANSI-C and should compile easily with any compliant C 
50 compiler.
51 I inspected Haru in the following environment and make files for these 
52 environments 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
61 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.
62 In addition, ZLIB and PNGLIB are required when you want to use the features of 
63 compression and embedding PNG images. (In the case of Windows, static library 
64 files for several compilers are included in the package for WIndows.  In the 
65 case of  most of UNIX, these libraries are usually installed.)
66
67 *
68 * Available development environment
69 *
70 Haru can work as both static-library (.a, .lib) and shared-library (.so, .dll).
71 When you use it as static-library, It can be used by C and a C++.
72 But when you use it as shared-library, it can be used by many development 
73 languages which support shared library.
74 So far, Haru provides bindings for Ruby, Delphi/Free Pascal and C#.
75
76 If you write bindings for other programing languages, please notice me!
77
78 *
79 * Runtime environment of programs using Haru
80 *
81 1. static-library
82    No runtime files are required.
83
84 2. 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
90 NOTE:
91 In the UNIX environment, there are the cases that libz.so, libpng.so.x are 
92 necessary. About this, please refer to the documentation of PNGLIB and ZLIB.
93
94 *
95 * License
96 *
97 Haru is distributed under the ZLIB/LIBPNG License. Because ZLIB/LIBPNG License 
98 is one of the freest licenses, You can use Haru for various purposes.
99
100 The license of Haru is as follows.
101
102 Copyright (C) 1999-2006 Takeshi Kanno
103 Copyright (C) 2007-2009 Antony Dovgal
104
105 This software is provided 'as-is', without any express or implied warranty.
106
107 In no event will the authors be held liable for any damages arising from the 
108 use of this software.
109
110 Permission is granted to anyone to use this software for any purpose,including 
111 commercial applications, and to alter it and redistribute it freely, subject 
112 to 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 *
126 1. 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
130 2. 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
136 3. Sourceforge.net
137    We would like to thank sourceForge.net for project hosting.
138
139 4. Adobe Systems Inc.
140    We thank Adobe Systems Inc. for publishing PDF specification.
141