code: public java.awt.Graphics2D createPrinterGraphicsShapes(float width, float height, boolean convertImagesToJPEG, float quality, PrinterJob printerJob) {
          return new PdfPrinterGraphics2D(this, width, height, null, true, convertImagesToJPEG, quality, printerJob);
      }
docs: Gets a <CODE>Graphics2D</CODE> to print on. The graphics
  are translated to PDF commands.
  @param width
  @param height
  @param convertImagesToJPEG
  @param quality
  @param printerJob
  @return a Graphics2D object