I have the following...
com.lowagie.text.Document pdfdocument = new
com.lowagie.text.Document();
PdfWriter writer2 =
PdfWriter.getInstance(pdfdocument, new FileOutputStream("test.pdf"));
pdfdocument.open();
PdfContentByte cb =
writer2.getDirectContent();
Graphics2D g2d =
cb.createGraphics(PageSize.A4.width(), PageSize.A4.height());
panel.paint(g2d);
g2d.dispose();
pdfdocument.close();
Now, I want to convert this to an Image and insert the
image into another PDF document.
How do I convert the document to an Image???