code: public java.awt.Graphics2D createPrinterGraphicsShapes(float width, float height, PrinterJob printerJob) {
          return new PdfPrinterGraphics2D(this, width, height, null, true, false, 0, printerJob);
      }
docs: Gets a <CODE>Graphics2D</CODE> to print on. The graphics
  are translated to PDF commands as shapes. No PDF fonts will appear.
  @param width the width of the panel
  @param height the height of the panel
  @param printerJob a printer job
  @return a <CODE>Graphics2D</CODE>