Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a PDF file programmatically with C?

Tags:

c

pdf

I want to write some String data to a pdf file programmatically, i want to know what are the C libraries that i have to use and how to use them

like image 287
user224790 Avatar asked Dec 22 '09 18:12

user224790


4 Answers

There's libHaru and PDFlib.

like image 102
Laurent Parenteau Avatar answered Oct 23 '22 03:10

Laurent Parenteau


The Haru library, on sourceforge. We have had good experience with it.

like image 27
Radim Cernej Avatar answered Oct 23 '22 03:10

Radim Cernej


PoDoFo is a good option. Here is a discussion listing libraries for C/C++ languages.

like image 45
sventechie Avatar answered Oct 23 '22 05:10

sventechie


Yes, you can use C++ or C or any text processing language to create PDF files. The preferred method is to go to Adobe PDF Website and get a book or the specification for the latest version of PDF. They own the language, so they are the official starting place.

like image 29
Thomas Matthews Avatar answered Oct 23 '22 05:10

Thomas Matthews