• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake/modules/H30-Oct-2013-8875

demo/H03-May-2022-5,6783,886

doc/H30-Oct-2013-32

if/H30-Oct-2013-25,66017,546

include/H30-Oct-2013-6,5793,973

script/H30-Oct-2013-2,3201,826

src/H03-May-2022-132,987123,998

win32/H30-Oct-2013-940874

.gitignoreH A D30-Oct-2013431 4342

CHANGESH A D30-Oct-20135.9 KiB141116

INSTALLH A D30-Oct-2013358 159

Makefile.amH A D30-Oct-2013158 43

READMEH A D30-Oct-20135 KiB142110

README_cmakeH A D30-Oct-20134.4 KiB10782

build.mkH A D30-Oct-20131.4 KiB4028

buildconf.shH A D30-Oct-2013650 3931

configure.inH A D30-Oct-20139.3 KiB331289

libharu.DevPackage.cmakeH A D30-Oct-2013385 2017

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
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 static-library (.a, .lib) and shared-library (.so, .dll).
71When you use it as static-library, It can be used by C and a C++.
72But when you use it as shared-library, it can be used by many development
73languages which support shared library.
74So far, Haru provides bindings for Ruby, Delphi/Free Pascal and C#.
75
76If you write bindings for other programing languages, please notice 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

README_cmake

1Instruction for the CMake Build System
2======================================
3
4CMake is a family of tools designed to build, test and
5package software and it is cross-platform and open
6source. CMake and can obtained from http://www.cmake.org.
7
80 Setup CMake
9-------------
10CMake is available in most of Linux repositories and can
11be therefore easily installed. In Cygwin just use the
12usual method with setup.exe to get the latest version of CMake.
13For Windows and Mac OS X go to http://www.cmake.org and
14download the appropriate binary packge. Make sure that the
15bin directory of the extracted CMake package is in the
16PATH environment variable. Check in the CLI with
17
18cmake --version
19
20that CMake can be found. There is also a graphical interface
21to CMake available which can be run with ccmake (Linux, Mac OS X)
22or cmake-gui (Windows, Linux, Mac OS X). In the next section
23the command line tool cmake is used, but the graphical interface
24works similar. Note, that CMake should always operate in a
25out-of-source directory. If you need to run CMake again it's best
26to remove the whole folder and start with the directory creation
27in order to prevent problems with stale CMake cache files.
28
29X Specific instructions for Linux and Mac OS X
30==============================================
31Create a directory at the same level as the libharu source directory,
32e.g. "mkdir libharu_build". Cd into this directory.
33Than run cmake with the command
34
35cmake ../libharu
36
37CMake will configure the build and create the appropriate makefiles.
38Run "make" to create the library and the examples. There are some
39options available which are described below.
40
41X Specific instructions for Windows
42===================================
43Create a directory at the same level as the libharu source directory,
44e.g. "mkdir libharu_build". Cd into this directory.
45Since there are more compiler toolsets available for Windows than
46the standard gcc compiler, you need to tell cmake which makefile
47generator to use
48
49cmake -G "Makefile Generator" ..\libharu
50
51where Make Generator is one of the following (most important listed)
52
53  Borland Makefiles           = Generates Borland makefiles.
54  MSYS Makefiles              = Generates MSYS makefiles.
55  MinGW Makefiles             = Generates a make file for use with
56                                mingw32-make.
57  NMake Makefiles             = Generates NMake makefiles.
58  Visual Studio 6             = Generates Visual Studio 6 project files.
59  Visual Studio 9 2008        = Generates Visual Studio 9 2008 project files.
60
61You get a complete list of all available generators for your platfrom
62with "cmake --help". I'll go into details for one specific compiler toolset.
63The other generators work similar.
64
65Using CMake to produce Visual C++ 2008 Makfiles
66-----------------------------------------------
67First you need to have the command line interface setup correctly. Start
68cmd.exe and run "%VS90COMNTOOLS%vsvars32.bat". This will set up the
69command line tools of Visual C++ 2008. Cd into the created build
70directory and run
71
72cmake -G "NMake Makefiles" ..\libharu
73
74After the configuration and creation of the makefile run "nmake" to create
75the libraries and demonstrations. By default a shared library will be
76created therefore you need to copy the haru.dll from the src directory
77in the demo directory in order for the demonstrations to run correctly.
78
79X Useful CMake options
80======================
81There are some options available where you can influence the configuration
82stage. These options must be given at the command line with the -D flag, e.g.
83
84cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug ..\libharu
85
86  CMAKE_BUILD_TYPE=Debug|Release - debug or release build
87  BUILD_SHARED_LIBS=ON|OFF - shared or static build
88  CMAKE_COLOR_MAKEFILE=ON|OFF - color output
89  CMAKE_VERBOSE_MAKEFILE=ON|OFF - verbose makefile output
90
91More options can be found here: http://www.cmake.org/Wiki/CMake_Useful_Variables
92
93X How does CMake find libraries
94===============================
95CMake searches usually in the standard locations to find libraries, which
96works well on Linux und Mac OS X. This is not the case for Windows (where
97there are simply no standard locations for libraries) or if you want to
98use a library at a non-standard location. You can help CMake to find
99libraries via two environment variables, e.g. for Windows:
100
101set CMAKE_INCLUDE_PATH=path_to_zlib_headers
102set CMAKE_LIBRARY_PATH=path_to_zlib
103
104and then CMake will be able to find zlib.
105
106
107