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

Massive WMFTranscoder problems

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: All

      Description

      While transforming a wmf file – which is exported from a MS ppt – squiggle
      and Adobe isn't able to load and render is properly. The loading can be fixed
      easy, because both readers do not accept the encoding Cp1252. After deleting
      encoding="Cp1252" in the svg file Adobe and squiggle will show “something” but
      broken:

      • The text has strange positions
      • No font information is kept
      • No graphics are embedded or linked
      • No transparency of elements

      I placed the examples here:

      http://www.java-tutor.com/docs/p.ppt
      http://www.java-tutor.com/docs/p.wmf
      http://www.java-tutor.com/docs/p.svg

      I'm using WMFTranscoder form 1.6. I tried version batik-src-06-03-08.zip too,
      but got a

      Processing : p.wmf...Exception in thread "main" java.lang.NullPointerException
      at org.apache.batik.svggen.ImageHandlerBase64Encoder.encodeImage
      (ImageHandlerBase64Encoder.java:156)
      at org.apache.batik.svggen.ImageHandlerBase64Encoder.handleHREF
      (ImageHandlerBase64Encoder.java:132)
      at org.apache.batik.svggen.DefaultImageHandler.handleImage
      (DefaultImageHandler.java:95)
      at org.apache.batik.svggen.SimpleImageHandler.handleImage
      (SimpleImageHandler.java:125)
      at org.apache.batik.svggen.SVGTexturePaint.toSVG
      (SVGTexturePaint.java:135)
      at org.apache.batik.svggen.SVGPaint.toSVG(SVGPaint.java:133)
      at org.apache.batik.svggen.SVGPaint.toSVG(SVGPaint.java:115)
      at org.apache.batik.svggen.SVGGraphicContextConverter.toSVG
      (SVGGraphicContextConverter.java:100)
      at org.apache.batik.svggen.DOMGroupManager.addElement
      (DOMGroupManager.java:168)
      at org.apache.batik.svggen.SVGGraphics2D.fill(SVGGraphics2D.java:1395)
      at org.apache.batik.transcoder.wmf.tosvg.WMFPainter.paint
      (WMFPainter.java:1070)
      at org.apache.batik.transcoder.wmf.tosvg.WMFPainter.paint
      (WMFPainter.java:448)
      at org.apache.batik.transcoder.wmf.tosvg.WMFTranscoder.transcode
      (WMFTranscoder.java:200)
      at org.apache.batik.transcoder.wmf.tosvg.WMFTranscoder.main
      (WMFTranscoder.java:277)
      at T.main(T.java:10)

      Christian

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              ullenboom@gmail.com Christian Ullenboom
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: