jPDFWriter allows developers to generate PDF documents directly from Java programs. By extending the standard Java classes that handle printing, it emulates a Java printer job and its behavior. This eliminates the need for any code changes and even allows an application to choose where to print at runtime.

URL:jPDFWriter - Java PDF Creator Library - Create, Generate, Write PDF with Java