Solved

Good PDF generation library for C/C++?

Posted on 2011-09-27
5
287 Views
Last Modified: 2012-05-12
I am looking to integrate PDF generated reports into an application that is written in c++.  I want them native to the application, not generated through a print driver or such.  I also need the application to be platform independent (Linux/AIX/Windows).  Is there a good library out there that does this?  I am trying to avoid the expense of Adobe's PDF API.  I have looked a little at the HaruPDF Library but want to explore all options before investing my time and $$$  in one solution over another.  Any help/advice/experience with this kind of tool/lib would be appreciated.
0
Comment
Question by:cvhoyt
5 Comments
 
LVL 13

Accepted Solution

by:
Hugh McCurdy earned 250 total points
Comment Utility
0
 
LVL 13

Expert Comment

by:Hugh McCurdy
Comment Utility
Or their new page -- http://libharu.org/wiki/Main_Page
0
 
LVL 20

Expert Comment

by:carlmd
Comment Utility
Take a look at "enscript". This may or may not be installed on your AIX system, but if not it is free and can be downloaded at:
                http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html
This converts ascii to postscript, such that you could create ascii reports then convert.
0
 
LVL 7

Expert Comment

by:tampnic
Comment Utility
If you can live with generating reports onto fixed size templates, here is the approach I took recently when required to print PDF certificates from a GUI E-learning application.

1) Use Adobe Acrobat to create a PDF form, fields added as placeholders for the data from the application. This is the template for all certificates in my app.
2) Use the FDF toolkit from Adobe (free and cross-platform) to generate FDF files with the data to be inserted e.g. course name, user name, date passed etc.
3) Use pdftk (open source and cross-platform) to merge data from FDF files onto the form template, outputting a flattened PDF for printing or storage.

I actually stripped out a lot of the pdftk source code, leaving just the FDF merge functionality, and compiled it into a DLL for use in my Windows app. The downside to this approach is you are putting data into fixed size fields on a page so layout is restricted, but this was not an issue in my situation.

PDF is a royal pain - maybe one of the open XML document formats would be more suitable?

Cheers,
  Chris
0
 

Author Closing Comment

by:cvhoyt
Comment Utility
Thanks what I figured all along.  Thanks for confirming.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now