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.
You have come to C in the hope of finding a powerful language for writing everyday computer programs, then you will not be disappointed. C is ideally suited to modern computers and modern programming. This book is a tutorial. Its aim is to teach C to a beginner, but with enough of the details so as not be outgrown as the years go. 'Input' is information supplied to a computer or program. 'Output' is information provided by a computer or program. Frequently, computer programmers will lump the discussion in the more general term input/output or simply, I/O. In C, there are many different ways for a program to communicate with the user. C programming language provides many built-in functions to read any given input and display/write data on screen or in a file. Printf, scanf, getchar, putchar, gets and puts are the functions which can be used for input and output of data in a C language program.
closed as off-topic by Mike Szyndel, Chris, Scott, Lee Taylor, Tadeusz KopecDec 18 '13 at 14:00
This question appears to be off-topic. The users who voted to close gave this specific reason:
'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.' – Mike Szyndel, Chris, Scott, Lee Taylor, Tadeusz Kopec
C Output Pdf File
If this question can be reworded to fit the rules in the help center, please edit the question.
10 Answers
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).
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 away some of the complexity. Wasn't too difficult. You can find the library here:
Enjoy!
Free download dolby atmos movies. If you're brave and willing to roll your own, you could start with a PostScript library and augment it to deal with PDF, taking advantage of Adobe's free online PDF reference.
It depends a bit on your needs. Some toolkits are better at drawing, others are better for writing text. Cairo has a pretty good for drawing (it support a wide range of screen and file types, including pdf), but it may not be ideal for good typography.
PDF Hummus.see for http://pdfhummus.com/ - contains all required features for manipulation with PDF files except rendering.
Lidia MirkinLidia Mirkin
jagpdf seems to be one of them. It is written in C++ but provides a C API.
Sangcheol ChoiSangcheol Choi
LibHaru seems to be used by many.
A non-open source approach is: PDF Creator Pilot which provides more language options including C++, C#, Delphi, ASP, ASP.NET, VB, VB.NET, VBScript, PHP and Python
muPdf library looks very promising: http://mupdf.com/
There is also an open source viewer: http://blog.kowalczyk.info/software/sumatrapdf/free-pdf-reader.html
PeterPeter
Try wkhtmltopdf
Software features
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.