xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44722] New: WMFTranscoder/WMFPainter writes out "?" instead of numbers in resulting SVG document when attempting to convert a WMF image without a viewport width specified
Date Mon, 31 Mar 2008 23:07:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44722

           Summary: WMFTranscoder/WMFPainter writes out "?" instead of
                    numbers in resulting SVG document when attempting to
                    convert a WMF image without a viewport width specified
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Utilities
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: brent.pacheco@cerner.com


Created an attachment (id=21747)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21747)
This attachment contains a WMF witha viewport width of 0 and the resulting svg
images after it has been processed by a modified & unmodifed WMFTranscoder

Line 118 on WMFPainter.java resets the scale based on a calculation of scale *
the width in pixels / the viewport width.  In the event that the viewport width
is zero, division by zero occurs and a the scale is set as "Infinity."  This
causes lots of issues downstream and eventually the SVG file is written out
with "?" in place of numbers in the <path> tags, and the SVG renders completely
blank.  If this line is commented out, then the SVG resembles the original WMF,
except that only about half of the original content is rendered in the view
port.  See the attachment for the original WMF image and the resulting two SVG
files.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message