Hi I¹m stuck at creating pdfs of my JFreeCharts using iText. I want to create a pdf of my JFreeChart which is encapsulated using wicket¹s Image (http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html).
There are the following links which I¹ve tried to use for my purpose * http://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-if rame.html * http://markmail.org/search/?q=wicket+list%3Aorg.apache.wicket.users+pdf+itex t#query:wicket%20list%3Aorg.apache.wicket.users%20pdf%20itext+page:1+mid:gbg zhkgdkmfhbsiw+state:results I¹ve also downloaded the iText book (referring to page 143 and 536). Here is my code - http://pastie.org/523696. I launch a Modal window with a link on the Modal window which downloads the JFreeChartImage as a pdf file. The variable jfreechartimage is the JFreeChartImage which also has a method getImagecontent which is an accessor which contains the image as an array of bytes. This property variable is set in the getImageData method (refer to the first jfreechart and wicket example link). Have a look at lines 27-29. I get a IllegalStateException when I click on the link. How do you create a pdf with bytes of the image? Cheers Patrick
