code: public java.awt.Graphics2D createGraphics(float width, float height, boolean convertImagesToJPEG, float quality) {
          return new PdfGraphics2D(this, width, height, null, false, convertImagesToJPEG, quality);
      }
docs: Gets a <CODE>Graphics2D</CODE> to write on. The graphics
  are translated to PDF commands.
  @param width the width of the panel
  @param height the height of the panel
  @param convertImagesToJPEG
  @param quality
  @return a <CODE>Graphics2D</CODE>