Hi,
I am creating a pdf file consisting of chapters, sections and
subsections. Now I want to add an jFreeChart Chart into a chapter or a
section.
When I use getDirectContent(), the image appears in the pdf, but not in
the chapter I would like to have it appear. It appears in ahead of my
chapter.
When I do something like:
public static void appendChartToPDF(Chapter poChapter, JFreeChart
poChart, int pnWidth, int pnHeight) throws Exception {
BufferedImage loImage = poChart.createBufferedImage(pnWidth,
pnHeight);
Image loImage2 = Image.getInstance(loImage, null);
Chunk loChunk = new Chunk(loImage2, 0, 0, true);
poChapter.add(loChunk);
}
I get no results at all.
What am I doing wrong?
best regards
Tom
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/