Bug 42528 - Partial Conversion of Huge SVG FILE creates huge PDF file
Summary: Partial Conversion of Huge SVG FILE creates huge PDF file
Status: NEW
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Rasterizer (show other bugs)
Version: 1.7
Hardware: Other other
: P2 major
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-27 13:12 UTC by alexost
Modified: 2007-05-27 13:12 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alexost 2007-05-27 13:12:35 UTC
Hi,

Few Problems where found when tried to convert Partial SVG to PDF
1. White Area on top of the conversion(PDF) it happen even with small SVG's
   and it also happened when converting to JPG

   example:

   java  -jar batik-rasterizer.jar -m application/pdf -maxw 250 -maxh 250 -a 
0,0,250,250 -d batikFX-1.pdf batikFX.svg
   
   If converting full SVG there are no additional white area's

   Example:

      java  -jar batik-rasterizer.jar -m application/pdf -d batikFX-1.pdf 
batikFX.svg

2. Conversion of Huge SVG FILE created huge PDF and also huge JPG. 
  When trying to view This File In Acrobat Reader we had problems to view or to 
print it with more detailes. Our decision was to split the PDF to smaller files 
that will allow  easier opening by the Acrobat Reader and maybe will allow to 
print them.  
  So we tried this option with a JPG and when trying to convert only partial 
SVG to JPG it is working fine and creating small jpg file , 

Example

java -Xms64m -Xmx512m -jar batik-rasterizer.jar -m image/jpeg -maxw 1000 -maxh 
1000 -a 0,0,1000,1000    -d Huge_Map-1.jpg Huge_Map.svg

but when trying to convert this huge SVG to PDF the  PDF file size is stays the 
same as the regular conversion(Huge file size) 
  
Example

java -Xms64m -Xmx512m -verbosegc -jar batik-rasterizer.jar -m application/pdf -
maxw 1000 -maxh 1000 -a 0,0,1000,1000    -d Huge_Map-1.pdf Huge_Map.svg


Our huge SVG file
==============
It is generated according to DB structure of Graph dependencies , it is made of 
around 15000 objects : 5000 rectangles , 5000 text objects , ~5000 lines
the width and Height and view Box of the SVG are :
width="29210" height="1110" viewBox="0 0 29210 1110"

Additional Info
=============
This was tried on Windows 2000 with java 1.5
and
On Unix(HP,SUN,AIX) with java 1.4

I will be glade to send an Example of the file upon request  

Thanks In Advance
Alex Ostar