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

getDocumentSize returning wrong document size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7, 1.8, 1.7.1
    • None
    • Bridge
    • None
    • Red hat Enterprise Linux 6.8, oracle java 8v101

    Description

      Building svg document with roughly below code gives wrong document size on 4K screen. Code and svg is attached as a zip file.
      SVG is of size 64x64. But getDocumentSize is returning 68x68.

      My primary analysis is as following:
      There is comment found in the code ->
      // <!> FIXME: hack to compute the original document's size

      It seems, getting the original document's size is still to be fixed.

      Reference on github :

      https://github.com/apache/batik/blob/batik-1_7/sources/org/apache/batik/bridge/SVGSVGElementBridge.java

      • Line 166

      https://github.com/apache/batik/blob/batik-1_8/sources/org/apache/batik/bridge/SVGSVGElementBridge.java

      • Line 167

      Attachments

        1. batik-example.zip
          3 kB
          Rohit Sarpotdar

        Activity

          People

            Unassigned Unassigned
            rosarp Rohit Sarpotdar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: