Thanks again

Sorry for disturbing you again and again.  
Actually I am facing this large file size problem only for PDF.  AS a
test I have converted the SVG file into Different Image format and they
look ok.

Original SVG file is 12KB

Converted to "png", the size is 8kb
Converted to "jpeg", the size is 11kb
Converted to "tiff", the size is 235kb

But when I convert to PDF the size is 1848kb.

So why Batik is  increasing the size only for PDF?

Actually I am using the following command line to convert SVG.

java -jar batik-rasterizer.jar samples/4.svg

With the option of "application/pdf" for PDF conversion.


We are planning to use the batik in our project as a transcoder
especially to convert the SVG into PDF, but the increase in file size is
confusing me !!.


Thanks
Shan



-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2003 15:00
To: Batik Users
Subject: Re: SVG to PDF Conversion



Shan Kajendran wrote:
> Thanks Mr DeWeese
> 
> As I am very new to SVG and Batik I didn't fully understand your 
> explanation.  If you don't mind could you please explain in detail?

Hi Shan,

     Since you seem to know what rasterization is I'm a little at a loss
to know what I should explain in more detail - other than to point out
that the raster version of most geometric primitives is several orders
of magnitude larger - hence the 12K -> 1.8MB change in size.

> Also I can see that opacity operations end up rasterizing.

   Not all do - fill-opacity and stroke-opacity are directly transcoded,
but group-opacity is rasterized - it is non-trivial to avoid this (if it
can be avoided in PDF - I am not a PDF expert).

> 
> Thanks
> Shan
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
> Sent: 16 September 2003 13:16
> To: Batik Users
> Subject: Re: SVG to PDF Conversion
> 
> 
> 
> Shan Kajendran wrote:
> 
>>Dear Friends,
>>
>>I am using Rasterizer in Batik to convert SVG into PDF.  It is
>>converting fine but the problem is the size.
>>
>>12kb svg is converted into nearly 1.8 meg pdf.
> 
> 
> Hi Shan,
> 
>  > Any idea?
> 
>     There are quite a number of SVG features that need to be 
> rasterized for PDF. Like almost all filter effects, also some opacity 
> operations end up rasterizing (some of these could theoretically be 
> avoided I think).
> 
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 




---------------------------------------------------------------------
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