[c++] Open source PDF library for C/C++ application?

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.

This question is related to c++ c pdf open-source

The answer is


http://wxcode.sourceforge.net/docs/wxpdfdoc/

Works with the wxWidgets library.


PDF Hummus. see for http://pdfhummus.com/ - contains all required features for manipulation with PDF files except rendering.


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.


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:

http://podofo.sourceforge.net/

Enjoy!


jagpdf seems to be one of them. It is written in C++ but provides a C API.


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.


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


  • 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


Examples related to c++

Method Call Chaining; returning a pointer vs a reference? How can I tell if an algorithm is efficient? Difference between opening a file in binary vs text How can compare-and-swap be used for a wait-free mutual exclusion for any shared data structure? Install Qt on Ubuntu #include errors detected in vscode Cannot open include file: 'stdio.h' - Visual Studio Community 2017 - C++ Error How to fix the error "Windows SDK version 8.1" was not found? Visual Studio 2017 errors on standard headers How do I check if a Key is pressed on C++

Examples related to c

conflicting types for 'outchar' Can't compile C program on a Mac after upgrade to Mojave Program to find largest and second largest number in array Prime numbers between 1 to 100 in C Programming Language In c, in bool, true == 1 and false == 0? How I can print to stderr in C? Visual Studio Code includePath "error: assignment to expression with array type error" when I assign a struct field (C) Compiling an application for use in highly radioactive environments How can you print multiple variables inside a string using printf?

Examples related to pdf

ImageMagick security policy 'PDF' blocking conversion How to extract table as text from the PDF using Python? Extract a page from a pdf as a jpeg How can I read pdf in python? Generating a PDF file from React Components Extract Data from PDF and Add to Worksheet How to extract text from a PDF file? How to download PDF automatically using js? Download pdf file using jquery ajax Generate PDF from HTML using pdfMake in Angularjs

Examples related to open-source

Open Source Javascript PDF viewer Open Source Alternatives to Reflector? Open-Source Examples of well-designed Android Applications? What does "commercial use" exactly mean? What is the best open source help ticket system? Are there any Open Source alternatives to Crystal Reports? Anybody knows any knowledge base open source? What are your favorite extension methods for C#? (codeplex.com/extensionoverflow) What is the best open XML parser for C++? What are some great online database modeling tools?