DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42
528>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42528
a>
Summary: Partial Conversion of Huge SVG FILE
creates huge PDF
file
Product: Batik
Version: 1.7
Platform: Other
OS/Version: other
Status: NEW
Severity: major
Priority: P2
Component: SVG Rasterizer
AssignedTo: batik-dev xmlgraphics.apache.org
ReportedBy: alexostr yahoo.com
CC: alexostr yahoo.com
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
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=ema
il
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribe xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help xmlgraphics.apache.org
|