Hi Namrata,

Namrata <[EMAIL PROTECTED]> wrote on 05/03/2007 06:44:19 
AM:

> The chart contains the useful informatiion and its the bar charts 
containing
> the information about some biomedical parameters. Firstly i created the
> JFreeChart and then using batik i exported that chart as SVG to improve 
its
> quality.

  Have you looked at the SVG generated?  Is the SVG lots of path
commands or one big image element?  Does the text look like text or
is also just paths (you should be able to search and find the
text from the chart in the SVG).

  What does a text element look like in the SVG?  (I don't care
about the actual text just the text element and it's attributes
as well as sub elements like 'tspan').

> And then we Export the jasper report as PDF. Now the size of the 
generated 
> PDF file is so large because we are embedding each chart as a subreport 
in 
> Jrxml. And each main report (PDF) contains many such charts (many 
subreports) 
> depending on the bio medical parameters it has. Now can u help me with 
this?

   Well I might be able to help a little based on the above info,
but so far it sounds like the only reason your final report is large
is because it has lots of charts in it.  Can you estimate the size
of each chart?  Approx how many bars in each chart? How much text
in each chart?

   If we are talking 10K per chart that sounds pretty good to me,
100K per chart would make sense for a complex chart, 1Mb/chart 
probably indicates that something is 'inefficient' in the 
PDF generation, 10MB/chart means something is wrong.

> 
> thomas.deweese wrote:
> > 
> > Hi Namrata,
> > 
> > Namrata <[EMAIL PROTECTED]> wrote on 05/02/2007 
07:13:46 
> > AM:
> > 
> >> I have exported the JFreeChart as SVG using batik. And that 
JFreeChart 
> > is
> >> embedded in a Jasper Report. But when i export the report as PDF the 
> > size of
> >> the PDF file is too much becuase of the size of the charts. So can 
> > anyone
> >> help me with how to reduce the size of SVG containing the chart? 
Please
> >> reply as soon as possible.
> > 
> >    Do you have any idea why the charts are so large?  What do the 
charts
> > have in them? We don't have a magical, I want smaller output option,
> > the large files are generally large for a reason.  The real question
> > is can you work around the cause or live without what ever is causing
> > it.  Without knowing the details of how you are exporting the SVG
> > (perhaps a sample SVG file) and how you are rendering the SVG to PDF
> > it's very difficult to help you.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: 
[EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Reducing-the-
> size-of-SVG-file-tf3679961.html#a10302444
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to