I am looking for a library which will allow me to render text and graphics output onto a PDF document. (Cairo is certainly an option.) I would like to know how OpenOffice writes PDF files to see if I could use the same library. What library is being used by OpenOffice for PDF export?
Edit: I am looking for a C or C++ library.
I looked everywhere to find out how to export any document to PDF using OpenOffice. I finally found a buried post in the OpenOffice forums that got me 90% there. Here is my 100% solution. Works with OpenOffice 3.1. You must install OpenOffice to use this code. You must include references to cli_basetypes, cli_cppuhelper, cli_oootypes, cli_ure, cli_uretypes. These dll references are found in the OpenOffice SDK. Sorry, but this is in C#.. not C/C++. HTH someone.
PDFCreator has an API that can help you.
http://www.pdfforge.org/forum/open-discussion/3063-api-sdk-pdfcreator
What language are you working in? There are many PDF libraries out there. Search Stack Overflow for "pdf library [programming language]". There's tons of recommendations already.
OpenOffice uses the Sun PDF library as an extension to import PDFs, but I'm not sure what it uses to export them.