Copy the OutputStream from the writeChartAs*() method of your writeChartAs*() in ChartUtilities to the InputStream used to create the PDXObjectImage in AddImageToPDF . A typical implementation of copyStream() shown here .
Addendum: Alternatively, use streams with streams to copy from output to input, as shown here here and here .
trashgod
source share