You can try a library lib PDFLib (www.pdflib.com)
to code functions that write content to PDF
documents. Or you can generate XML Formatting Objects and
convert those to PDF's using FOP (www.apache.com/xml),
RenderX XEP (www.renderx.com), or AntennaHouse PDF
Converter (www.antennahouse.com). There are others as
well.