You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/09/09 03:10:04 UTC

[Bug 123216] New: OpenOffice 4.0 grudges WMF and EMF pictures from Word files

https://issues.apache.org/ooo/show_bug.cgi?id=123216

            Bug ID: 123216
        Issue Type: DEFECT
           Summary: OpenOffice 4.0 grudges WMF and EMF pictures from Word
                    files
           Product: Writer
           Version: 4.0.0
          Hardware: PC
                OS: Windows, all
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: open-import
          Assignee: issues@openoffice.apache.org
          Reporter: egil.jahnsen@gmail.com
                CC: issues@openoffice.apache.org

Created attachment 81484
  --> https://issues.apache.org/ooo/attachment.cgi?id=81484&action=edit
OpenOffice 4.0 fails to import WMF & EMF pics from Word.

OpenOffice 4.0 not able to import all WMF and EMF pics from Word files. Funny
thing, those problematic WMF pics can be transferred from Word to openoffice
4.0 by copy & paste, but not EMF pics. No problems found with OO 3.4.1,
though!!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needmoreinfo                |regression
             Status|CONFIRMED                   |ACCEPTED
              Flags|                            |4.0.1_release_blocker?

--- Comment #14 from Armin Le Grand <Ar...@me.com> ---
ALG: This task and 121382 work with removing FontScaling using WorldTransform,
so I will remove it. Adding regression keyword, asking for AOO401 flag,
preparing commit to trunk.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Edwin Sharp <el...@mail-page.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #5 from Edwin Sharp <el...@mail-page.com> ---
Thank you.

I can't even copy from Word 2007 and paste in Writer.

Rev. 1520602 Win 7

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #12 from Armin Le Grand <Ar...@me.com> ---
ALG: Getting closer; the regression seems to be caused by task 121382 where the
WorldTransform gets used more intense at WMF import. There is a case used in
WMF import missing, the MWT_SET (4) in reading WIN_EMR_MODIFYWORLDTRANSFORM
actions. Added that. Still bad ly scaled.
When pasting from word to draw ConvertWMFToGDIMetaFile uses EnhWMFReader direct
and no WorldTransform is used at all.
When loading the *.doc, ConvertWMFToGDIMetaFile uses WMFReader which itself
(partially?) uses EnhWMFReader::ReadEnhWMF(); in this case the WorldTransform
is used and FontSizes get scaled by ca. 0.5 and 6.2 (what explains the too big
font sizes).
Question is if adaption of FontSize in task 121382 was correct or not; I still
think so - it maybe that WorldTransform adaption is still missing somewhere
else, checking...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #4 from Egil Jahnsen <eg...@gmail.com> ---
Created attachment 81490
  --> https://issues.apache.org/ooo/attachment.cgi?id=81490&action=edit
WMF and EMF pictures in NEW Word file

Created a new, empty Word file and copied the picture into it, - both as WMF
and EMF picture.  Enjoy and surprise!  Now OO 4.0 imported the .docx file
perfectly!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #10 from Armin Le Grand <Ar...@me.com> ---
ALG: EMF importer does the same and pasting from Word to in draw/impress works:
Two hints that the import itself works, so there must be someting around this
scenario when loading the whole file which changes the imported metafile, maybe
writzer does something special with it...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #22 from Egil Jahnsen <eg...@gmail.com> ---
(In reply to Armin Le Grand from comment #19)
> ALG: ...and a big thank you to Egil for finding and reporting this!

You are welcome! I'll do my best to have you guys sweating for your dimes. ;)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ACCEPTED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Armin Le Grand <Ar...@me.com> ---
ALG: Checked and committed to AOO401 tree, changing target and done.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #2 from Edwin Sharp <el...@mail-page.com> ---
Created attachment 81485
  --> https://issues.apache.org/ooo/attachment.cgi?id=81485&action=edit
EMF image screenshot

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #16 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1521441 into trunk:
i123216 No FontScaling by WorldTransform on WMF import

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #20 from Edwin Sharp <el...@mail-page.com> ---
(In reply to Armin Le Grand from comment #19)
> ALG: ...and a big thank you to Egil for finding and reporting this!

+1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #8 from Armin Le Grand <Ar...@me.com> ---
ALG: @Egil: That gives us a workaround, thanks. Looking to the EMF import wile
file loading...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|issues@openoffice.apache.or |Armin.Le.Grand@me.com
                   |g                           |
   Target Milestone|---                         |4.1.0

--- Comment #15 from Armin Le Grand <Ar...@me.com> ---
ALG: Owner and target

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

jsc@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jsc@apache.org
   Target Milestone|4.1.0                       |4.0.1
              Flags|4.0.1_release_blocker?      |4.0.1_release_blocker+

--- Comment #17 from jsc@apache.org ---
approve showstopper request

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #19 from Armin Le Grand <Ar...@me.com> ---
ALG: ...and a big thank you to Egil for finding and reporting this!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

4.0.1_release_blocker granted: [Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
jsc@apache.org has granted Armin Le Grand <Ar...@me.com>'s request for
4.0.1_release_blocker:
Bug 123216: OpenOffice 4.0 grudges WMF and EMF pictures from Word files
https://issues.apache.org/ooo/show_bug.cgi?id=123216


------- Additional Comments from jsc@apache.org
approve showstopper request

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Edwin Sharp <el...@mail-page.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needmoreinfo
                 CC|                            |elish@mail-page.com

--- Comment #1 from Edwin Sharp <el...@mail-page.com> ---
Can you please attach the Word document?

PS for top image of attachment 81484:
Save Graphics... - save as EMF - new document - Insert - Picture - From File...
- select EMF image -> image is cropped.

Rev. 1520602 Win 7

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #7 from Egil Jahnsen <eg...@gmail.com> ---
(In reply to Armin Le Grand from comment #6)
> ALG: Took a look; can copy/paste from word to draw/impress, but not to
> Writer or Calc in AOO400. The same on AOO341. Looking for other changes (the
> graphic gets loaded, font sizes are messed up, rest looks good).

Copy WMF pic from Word to Writer: In Writer try using Paste Special -> GDI
metafile.   That works for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

4.0.1_release_blocker requested: [Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
Armin Le Grand <Ar...@me.com> has asked  for 4.0.1_release_blocker:
Bug 123216: OpenOffice 4.0 grudges WMF and EMF pictures from Word files
https://issues.apache.org/ooo/show_bug.cgi?id=123216


------- Additional Comments from Armin Le Grand <Ar...@me.com>
ALG: This task and 121382 work with removing FontScaling using WorldTransform,
so I will remove it. Adding regression keyword, asking for AOO401 flag,
preparing commit to trunk.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Egil Jahnsen <eg...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egil.jahnsen@gmail.com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #11 from Armin Le Grand <Ar...@me.com> ---
ALG: ADded rGDIMetaFile.GetChecksum() and it's getting different at action #13,
a MetaFontAction. Looking deeper. Indeed, the FontSize is different; when
correcting one, the CRC is correct. Correct size is (169, 422), wrong one is
(85, 209). Need to check why different FontSizes get imported...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #21 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1521537 into branches/AOO401:
i123216 No FontScaling by WorldTransform on WMF import

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #3 from Egil Jahnsen <eg...@gmail.com> ---
Created attachment 81488
  --> https://issues.apache.org/ooo/attachment.cgi?id=81488&action=edit
WMF picture in original Word file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com

--- Comment #6 from Armin Le Grand <Ar...@me.com> ---
ALG: Took a look; can copy/paste from word to draw/impress, but not to Writer
or Calc in AOO400. The same on AOO341. Looking for other changes (the graphic
gets loaded, font sizes are messed up, rest looks good).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #13 from Armin Le Grand <Ar...@me.com> ---
ALG: Re-checked task 121382 (paste chart from bugdoc to writer) and never a
homogen matrix is set different from the identity in EMR_EXTCREATEFONTINDIRECTW
handler (ConvertWMFToGDIMetaFile uses EnhWMFReader direct and no WorldTransform
is used), so applying the WorldTransform to the FontSize is unused. Also tried
to find hints in ms docu if this should be applied, could not find hints in
EMR_EXTCREATEFONTINDIRECTW or close to it. Looks as if I could remove the
scaling in case EMR_EXTCREATEFONTINDIRECTW, but keep MWT_SET and handling it
which is surely not wrong. Checking...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.

[Bug 123216] OpenOffice 4.0 grudges WMF and EMF pictures from Word files

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=123216

--- Comment #9 from Armin Le Grand <Ar...@me.com> ---
ALG: Debugged through the EMF importer comparing AOO341 and AOO401, looks
correct. Preparing MSFilter stuff for debugging...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.