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