Bug 35986 - Parts of EMF file not visible/stretched to an enormous extent
Summary: Parts of EMF file not visible/stretched to an enormous extent
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
Reported: 2011-04-05 04:01 UTC by whatisand
Modified: 2020-06-21 22:47 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

EMF file which contains curves, axes and a legend (130.02 KB, image/x-emf)
2011-04-05 04:01 UTC, whatisand
How it look as image (184.17 KB, image/jpeg)
2015-02-08 10:32 UTC, seven
load and save emf in irfanview 4.53 (130.02 KB, image/x-emf)
2019-08-23 18:02 UTC, paulystefan
load irfanview emf and lo runs well (144.51 KB, application/vnd.oasis.opendocument.graphics)
2019-08-23 18:04 UTC, paulystefan
export pdf in from irfanview emf (37.97 KB, application/pdf)
2019-08-23 18:06 UTC, paulystefan
Office 365 on MacOS (52.48 KB, image/png)
2019-11-22 06:30 UTC, Chris Sherlock
load and save emf in irfanview 454 (2.78 MB, image/x-emf)
2020-04-08 12:20 UTC, paulystefan
load original and irfanview emf in LO Draw (202.02 KB, application/vnd.oasis.opendocument.graphics)
2020-04-08 12:23 UTC, paulystefan

Note You need to log in before you can comment on or make changes to this bug.
Description whatisand 2011-04-05 04:01:50 UTC
Created attachment 45274 [details]
EMF file which contains curves, axes and a legend

An EMF graphics file which contains some curves, axes and a legend is displayed like this: the axes are visible while the legend and the curves are invisible. When doing a right-click->break on the graphic, the legend appears in the correct spot. The curves are also visible, however, they are enourmously expanded beyond the drawing area of the A4 frame and it quite complicated to get them back to some correct size. 

I will add the EMF file in question as an attachment
Comment 1 Jan Holesovsky 2011-04-14 04:31:09 UTC Comment hidden (obsolete)
Comment 2 Michael Cook 2011-12-06 12:34:38 UTC Comment hidden (no-value)
Comment 3 Michael Cook 2011-12-06 12:35:46 UTC Comment hidden (no-value)
Comment 4 Michael Cook 2011-12-07 05:55:40 UTC Comment hidden (no-value)
Comment 5 Timur 2014-10-20 15:52:37 UTC Comment hidden (no-value)
Comment 6 seven 2015-02-08 10:32:48 UTC
Created attachment 113221 [details]
How it look as image

Opened from Paint in Windows 8.1
Comment 7 seven 2015-02-08 10:36:45 UTC Comment hidden (obsolete)
Comment 8 tommy27 2015-08-14 18:40:35 UTC Comment hidden (obsolete)
Comment 9 Timur 2015-08-17 15:53:42 UTC Comment hidden (obsolete)
Comment 10 Timur 2017-08-30 16:46:12 UTC
Repro in 6.0+ with new EMF+.
Comment 11 QA Administrators 2018-11-07 04:01:41 UTC Comment hidden (obsolete)
Comment 12 Roman Kuznetsov 2019-03-05 08:58:37 UTC
still repro in

Build ID: d81a11220d76eeecac80b27b25a4576b6e78210b
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded
Comment 13 paulystefan 2019-04-01 17:47:08 UTC
work around

open emf with irfanview or other viewer, 

copy the image,

insert image in LO.

but meta information of emf is lost.
Comment 14 paulystefan 2019-08-23 18:02:02 UTC
Created attachment 153602 [details]
load and save emf in irfanview 4.53

emf is then better eatable for LO
Comment 15 paulystefan 2019-08-23 18:04:08 UTC
Created attachment 153603 [details]
load irfanview emf and lo runs well

import of irfanview emf is successful and pdf print is no problem
Comment 16 paulystefan 2019-08-23 18:06:05 UTC
Created attachment 153604 [details]
export pdf in from irfanview emf

emf to pdf problem workaround with irfanview 4.53
Comment 17 paulystefan 2019-08-23 22:48:50 UTC
irfanview emf is much greater in size than the problem emf file.
Comment 18 Chris Sherlock 2019-11-19 09:38:50 UTC
I just opened the EMF file on master, and I can confirm that the graph lines are not appearing at all. However, it doesn't appear that this is being processed via the VCL EMF+ processor, nor is it being processed by drawinglayer. When I add a SAL_LOG="+INFO.emfio+WARN" it shows that emfio is actually reading the file.
Comment 19 Chris Sherlock 2019-11-22 06:30:56 UTC Comment hidden (no-value)
Comment 20 Chris Sherlock 2019-11-22 06:31:26 UTC Comment hidden (no-value)
Comment 21 paulystefan 2020-04-08 12:20:05 UTC
Created attachment 159425 [details]
load and save emf in irfanview 454

the previous file of Irfanview was a wrong download.

so Irfanview convert curves in simpler ones
Comment 22 paulystefan 2020-04-08 12:23:56 UTC
Created attachment 159426 [details]
load original and irfanview emf  in LO Draw


import both emf files

original and Irfanview
Comment 23 paulystefan 2020-06-21 22:47:43 UTC
same in LO beta2 x64 in win 10 x64

workaround with irfanview
load and save emf in irfanview, then the emf is eatable for LO