In this article, an excerpt from <em>iText in Action</em> (Manning Publications, December 2006), author Bruno Lowagie shows how easy it is to export any Swing component to PDF using iText's PdfGraphics2D object.
Platypus is a full-featured and easy-to-use page layout and typesetting system.
Inspired by technologies such as TeX, Platypus adds new features and, especially, ease of use to the generation of documents of all kinds. It is particularly adept at listing code, and so is frequently used for documentation. Input consists of text files with embedded formatting commands. These files are converted by Platypus to PDF, HTML, or Microsoft Rich Text Format (RTF).
Platypus is written in Java and relies on the iText library. It is available at no charge under the Apache open-source license. For more information, see the links to the left.