misformatted import of WMF file

Bug #868594 reported by David Mathog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Alvin Penner

Bug Description

WMF files produced by the application Chemsketch when opened in Inkscape 0.48 do not look right. The primary issue is that text is offset vertically. The same WMF imports into Powerpoint, where it looks as it did in Chemsketch.

Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :
Revision history for this message
David Mathog (mathog) wrote :

Chemsketch is freeware (for home and educational use) chemical drawing software. It is available from here:

http://www.acdlabs.com/resources/freeware/chemsketch/

Revision history for this message
David Mathog (mathog) wrote :

The platform was Windows XP SP3, fully patched.

Revision history for this message
David Mathog (mathog) wrote :
su_v (suv-lp)
tags: added: importing win32 wmf
Revision history for this message
su_v (suv-lp) wrote :

> added: (…) win32 (…)

Other platforms are differently affected: UniConvertor 1.1.5 (used for WMF files on linux and osx) doesn't import the text at all (known issue, already reported).

Workaround for other platforms: open WMF in LibreOffice 3.4.3, export as SVG and open in Inkscape (see attached file).
(edit the SVG file externally and insert 'width="297mm" height="210mm"' after the 'viewBox' attribute to scale the drawing as A4 landscape in Inkscape).

Revision history for this message
David Mathog (mathog) wrote :

Passing it through LibreOffice to SVG worked on my XP machine too. Thanks.

Is this an Inkscape problem, or is it in a library which reads the WMF for Inkscape?

Revision history for this message
su_v (suv-lp) wrote :

> Is this an Inkscape problem, or is it in a library which reads the WMF for Inkscape?

AFAIU (not being a dev myself) it is an Inkscape problem: on Windows, Inkscape makes use of certain system libraries to natively support the WMF/EMF file format. Most reported issues for EMF/WMF import/export have been rooted in Inkscape's code (I can't recall having seen one marked as an upstream issue in the system libs).

Because only few of the active developers work on Windows, and the feature is only available on one of the supported platforms, bug fixes and support of new features (e.g. embedded bitmaps in EMF files) take their time (priority being higher for basic features supported on all platforms).

Revision history for this message
Alvin Penner (apenner) wrote :

misaligned text confirmed on Windows XP, using the Windows-specific Metafiles input, Inkscape rev 10654.
svg result is attached.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

This earlier report seems to describe the same issue (though it does not provide a sample file):

Bug #635143 “Does not paste correctly from clipboard a VG drawn with Visual Basic”
<https://bugs.launchpad.net/inkscape/+bug/635143>

Proposing to link older bug #635143 as duplicate to this one (bug #868594) because it provides additional information (test file, source and screenshots).

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Alvin Penner (apenner) wrote :

fix committed to bzr rev 10674

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.49
su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.