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

Enhancements in the wmf transcoder package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.8
    • None
    • None
    • Operating System: other
      Platform: All

    Description

      The wmf transcoder package lacks some functionalities, so often the conversion
      from standard Metafiles generated by MS PPT shows a lot of differences from the
      original.

      I have enhanced / hacked the actual transcoder code (as of version 1.6) and
      added / corrected the following functionalities :

      • manage SVG images size (currently the transcoder keeps the virtual Metafile
        size, which is very large)
      • manage fonts whose charset is different from the standard Latin (ex: Greek)
      • manage text size and decoration (style, alignment, strikeout, underline,
        escaping, clipping, background)
      • manage stroke width and dash pattern
      • fill with hatched and textured patterns
      • draw bitmaps enclosed in Metafiles
      • correction of some errors when the size of a WMF record generated by PPT is
        greater than expected
      • add some of the WMF record type that are not handled by Batik 1.6

      I wish to donate the associated attached code to APACHE.

      attachements are :

      • path file for the modifications of Batik classes
      • text file for some test classes that can be useful to test the modifications
        and view the structure of any WMF files
      • some test cases :
      • testChart.wmf : text decorations, stroke width and dash patterns, fill with
        hatched and textured patterns
      • testGreek.wmf : charsets
      • blackShapes.wmf : PATBLT record
      • BatikWMF.wmf : images

      Attachments

        1. wmfTranscoder.patch
          256 kB
          Hervé Girod
        2. wmfTranscoder.patch
          260 kB
          Hervé Girod
        3. wmfTranscoder_2.patch
          257 kB
          Hervé Girod
        4. textGreek.wmf
          1 kB
          Hervé Girod
        5. testChart.wmf
          4 kB
          Hervé Girod
        6. test_textDecorations.txt.txt
          5 kB
          Hervé Girod
        7. test_classes.txt.txt
          86 kB
          Hervé Girod
        8. source_map.txt.txt
          5 kB
          Hervé Girod
        9. imageWMF.wmf
          217 kB
          Hervé Girod
        10. black_shapes.wmf
          2 kB
          Hervé Girod
        11. BatikWMF.wmf
          216 kB
          Hervé Girod

        Issue Links

          Activity

            People

              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              herve.girod@club-internet.fr Hervé Girod
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: