README 5.0 KB

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