Open Source PDF Library For C/C++ Application? (Closed)
Open Source PDF Library For C/C++ Application? (Closed)
Open Source PDF Library For C/C++ Application? (Closed)
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn
more
No more passwords to
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
remember. Signing in is fast,
100 simple and secure.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-
topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe
the problem and what has been done so far to solve it.
Closed 10 years ago.
I want to be able to generate PDF output from my (native) C++ Windows application. Are
there any free/open source libraries available to do this?
I looked at the answers to this question, but they mostly relate to .Net.
Share Improve this question edited Mar 3, 2018 at 14:03 asked Sep 12, 2008 at 11:31
Follow ChrisN
16.8k 10 59 82
1 of 5 5/19/2024, 11:04 AM
Open source PDF library for C/C++ application? - Stack Overflow https://stackoverflow.com/questions/58730/open-source-pdf-library-for-...
LibHaru
68 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).
Share Improve this answer Follow edited Apr 22, 2016 at 11:57 answered Sep 12, 2008 at 11:35
Daniil Ryzhkov aku
7,506 2 43 59 123k 33 174 203
1 Can we read pdf files with LibHaru or we can only create? – Rui Carneiro Apr 21, 2009 at 14:32
7 @Rui: only create, unfortunately. – Mark Ransom Nov 13, 2009 at 1:31
Unfortunately LibHaru doesn't support reading and editing PDF. So useless for me. – freeze Dec 28,
2018 at 13:50
3 It worth noting that the last commit was in 2015. The library is not being maintained at the moment.
– Eugene Jan 13, 2021 at 6:21
I worked on a project that required a pdf report. After searching for online I found the PoDoFo
library. Seemed very robust. I did not need all the features, so I created a wrapper to abstract
20 away some of the complexity. Wasn't too difficult. You can find the library here:
http://podofo.sourceforge.net/
Enjoy!
2 of 5 5/19/2024, 11:04 AM
1 Building PdDoFo on Mac is a huge pain so I finally gave up trying. Building LibHaru was very easy.
Share Improve this answer Follow answered Jan 6, 2009 at 16:16 community wiki
– user336063 Jan 23, 2015 at 1:13
1 Podofo got 2 compiler issues, after adding #include <climits>, <numeric_limits> in two files, was able
to build the package. But somehow, the cmake system does not play well on my Linux where I have two
versions of GCC (old one came with my Centos6.5, and a latest 5.3 that I build). Linking is an issue. I
managed to link the helloworld, but the test program produced a blank document. It is very hard to
solve this problem. – Kemin Zhou Aug 17, 2016 at 18:11
2 But podofo REQUIRES freetype2 library which is GPL, not LGPL. You cannot make software with use of
freetype2 if you want not to make your source public. – 18C Aug 24, 2017 at 18:35
PDF Hummus. see for http://pdfhummus.com/ - contains all required features for
manipulation with PDF files except rendering.
8
Share Improve this answer Follow answered Jan 3, 2013 at 0:56
Lidia Mirkin
81 1 1
1 I did a large PDF-Export with Hummus recently and can recommend it. Probably not complete in terms
of covering all features of the current PDFSpec (which is quite exhaustive), but easy to understand and
good extensible through a callback class with a number of virtual functions (github.com/galkahana/
PDF-Writer/blob/master/PDFWriter/…). Contains TIFF/JPEG handling and the freetype library for font
handling. – RED SOFT ADAIR May 27, 2014 at 12:14
have you been able to compile it as a dynamic linked library? Or does it support just static linked
library? – Sam Sep 12, 2018 at 13:57
Open source PDF library for C/C++ application? - Stack Overflow https://stackoverflow.com/questions/58730/open-source-pdf-library-for-...
Try wkhtmltopdf
Software features
2
Cross platform. Open source. Convert any web pages into PDF documents using webkit. You
can add headers and footers. TOC generation. Batch mode conversions. Can run on Linux
server with an XServer (the X11 client libs must be installed). Can be directly used by PHP or
Python via bindings to libwkhtmltox.
Share Improve this answer Follow answered Nov 24, 2013 at 9:56
M.Hefny
2,717 1 28 31
3 This is good. But, as it use dated webkit, some pages may complaint (youtube for example) – swdev
Aug 31, 2014 at 23:31
http://wxcode.sourceforge.net/docs/wxpdfdoc/
5 of 5 5/19/2024, 11:04 AM