Do you provide a subclass of java.awt.Graphics on which an application draws? My program uses java.awt.Graphics to do customized drawing and printing. It is architecturally desirable and cost effective to use the same model to produce a PDF document with a PDF graphics object.
Have you looked at the samples? Specificly at the GraphicsSample.java?