Haru Free PDF Library
http://libharu.sourceforge.net/index.html
Haru is a free, cross platform, open-sourced software library for generating PDF written in ANSI-C. It can work as both a static-library (.a, .lib) and a shared-library (.so, .dll). When you use it as static-library, It can be used by C and a C++.
It supports the following features.
1. Generating PDF files with lines, text, images.
2. Outline, text annotation, link annotation.
3. Compressing document with deflate-decode.
4. Embedding PNG, Jpeg images.
5. Embedding Type1 font and TrueType font.
6. Creating encrypted PDF files.
7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI-8R).
8. Supporting CJK fonts and encodings.
You can add the feature of PDF creation by using HARU without understanding complicated internal structure of PDF.
Download
http://sourceforge.net/projects/libharu/files/
Supporting platforms
HARU is written in ANSI-C and should compile easily with any compliant C compiler.
Tested HARU in the following environment and make files for these environments are included in a package.
1. Cygwin + GCC (Microsoft Windows)
2. Cygwin + MinGW (Microsoft Windows)
3. Microsoft VC++ (Microsoft Windows)
4. Borland C++ (Microsoft Windows)
5. GCC (Linux, FreeBSD, NetBSD...)
Also on platforms except the above, it is easy to build HARU.
In addition, ZLIB and PNGLIB are required when you want to use the features of compression and embedding PNG images. (In the case of Windows, static library files for several compilers are included in the package for Windows. In the case of most of UNIX, these libraries are usually installed.)
Regards
Anser