I have figured out how to add a JPanel into a PDF Document.
However, I have not figured out how to add the new Graphics2D
object
into the flow of an existing document.
This just adds it to the entire page:
Graphics2D g2d =
cb.createGraphics(PageSize.A4.width(),PageSize.A4.height());
Do I need to convert the JPanel to an Image
and then do
document.add(Image)??
Thanks