You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Rohit Sarpotdar (JIRA)" <ji...@apache.org> on 2017/01/17 15:08:26 UTC

[jira] [Created] (BATIK-1174) getDocumentSize returning wrong document size

Rohit Sarpotdar created BATIK-1174:
--------------------------------------

             Summary: getDocumentSize returning wrong document size
                 Key: BATIK-1174
                 URL: https://issues.apache.org/jira/browse/BATIK-1174
             Project: Batik
          Issue Type: Bug
          Components: Bridge
    Affects Versions: 1.7.1, 1.8, 1.7
         Environment: Red hat Enterprise Linux 6.8, oracle java 8
            Reporter: Rohit Sarpotdar
         Attachments: batik-example.zip

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





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org