|
Re: Dynamic SVG image doesn't show transparent shapes in PDF report. [message #662756 is a reply to message #662750] |
Thu, 31 March 2011 19:38 |
|
Are you generating the PDF with the API?
Jason
On 3/31/2011 3:06 PM, Behnil wrote:
> Hi guys,
>
> I have an SVG Image created using the Apache Batik framework. It's a
> JFreeChart panel drawn into the SVG xml file. It contains some text and
> shapes. And I would like to insert this image into my PDF BIRT report.
>
> So far I have a table containing an dynamic image which is bound to a
> parameter of a scripted DataSet. This DataSet has an handler java class
> where I contribute byte array of the SVG document to the parameter. The
> image has also it's handler java class. In it's onPrepare() method I
> just set image.setMimeType("image/svg+xml").
>
> This way the PDF report contains my SVG image. Great :o But, there are 2
> problems :(
> It absolutely ignores all shapes which have set the opacity (or alpha)
> value less than 1. When I try to save the SVG document to file.svg and
> open it in Gimp or Firefox, it looks fine. All transparent shapes are
> in. I would like to have this image cover all the PDF page. How can I do
> that? Let say the SVG image document is generated with 800 x 600 pixel
> size. Image item is in a table. I can set size of the image item to
> whatever I want, but the image is either clipped or there is empty space
> around it. The image doesn't respect size of the image item.
>
> Can somebody help me please? Sorry about my English.
|
|
|
|
|
|
Re: Dynamic SVG image doesn't show transparent shapes in PDF report. [message #662959 is a reply to message #662836] |
Fri, 01 April 2011 15:12 |
|
my email address is
jasonweathersby at windstream dot net.
Jason
On 4/1/2011 3:33 AM, Behnil wrote:
> I use only these render options:
>
> renderOption.setOutputFormat(RenderOption.OUTPUT_FORMAT_PDF) ;
> renderOption.setOutputFileName(filePath);
>
> where renderOption is instance of the RenderOption class and filePath is
> path of the PDF report file :)
>
> I forgot to mention that when I start generate the PDF report, it writes
> to the console about 20 of these messages:
> Graphics2D from BufferedImage lacks BUFFERED_IMAGE hint I can't send you
> the SVG file because I can't see your email address. Where can I found it?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03193 seconds