Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-747

Partial Conversion of Huge SVG FILE creates huge PDF file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVG Rasterizer
    • None
    • Operating System: other
      Platform: Other

    Description

      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

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            alexostr@yahoo.com alexost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: