Bug 164587 - Copying from Word for Mac into libreoffice results in an image not in text being pasted
Summary: Copying from Word for Mac into libreoffice results in an image not in text be...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.7.2 release
Hardware: All macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2025-01-05 12:20 UTC by Daniele
Modified: 2026-01-23 17:18 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
result (549.95 KB, application/vnd.oasis.opendocument.text)
2025-01-08 15:44 UTC, Daniele
Details
Original docx file (15.98 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-01-08 15:44 UTC, Daniele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele 2025-01-05 12:20:45 UTC
Description:
Copying from word into libreoffice results in an image not in text being pasted

Steps to Reproduce:
1.Open a Word document (see below for version)
2.Copy text
3.Paste into libreoffice

Actual Results:
An image has been pasted

Expected Results:
Text should be pasted


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.7.2 (AARCH64) / LibreOffice Community
Build ID: 4d38aa89eb70b473a991146628aa8fa772563902
CPU threads: 8; OS: macOS 15.1.1; UI render: Skia/Metal; VCL: osx
Locale: it-IT (it_IT.UTF-8); UI: en-US
Calc: threaded

Versione 16.91 (24111020)
Licenza: Microsoft 365 abbonamento (Mac)

Mac Apple M1
MacOS 15.1.1 (24B91)
Comment 1 Daniele 2025-01-05 13:03:36 UTC
This is a bug which I submitted a few years ago and marked as Worsforme because I did not have the same configuration any more. In these days I was working on a computer having the same Word version with which the bug had occurred and the bug is still there.
Comment 2 Regina Henschel 2025-01-05 16:05:44 UTC
I cannot confirm the described behavior. The clipboard content is inserted as text, when I use CTRL+V. Tested with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f4a3ffe1110aa38a3836533e6c51b910c68c2336
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded


Is the Word document locally on your PC? Do you use a locally installed Word? Or do you use an online access or cloud storage?

How do you paste the clipboard content?

The icon "Paste" has a drop-down list where you can chose how the clipboard content is inserted. Please try these options. Which options are listed there?

The problem might be Mac specific.
Comment 3 Daniele 2025-01-08 15:43:56 UTC
Hi Regina,
thank you for testing on your end.
Replying to your questions:
The file is local (saved on desktop). The word version is a local one too, but the contract is 365.
I copied with Cmd A and Cmd C
I pasted with the options first: Text only, rtf, html. 
With these three the text gets pasted

With Cmd V however I get an image.

The problem might be linked to 365 version of Word for Mac.
Attached the two documents used (docx from which the text was pasted and odt results: three texts and an image).
I hope this helps.
Comment 4 Daniele 2025-01-08 15:44:14 UTC
Created attachment 198435 [details]
result
Comment 5 Daniele 2025-01-08 15:44:32 UTC
Created attachment 198436 [details]
Original docx file
Comment 6 QA Administrators 2025-01-09 03:13:46 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2025-12-30 18:06:34 UTC
(In reply to Daniele from comment #3)
> The problem might be linked to 365 version of Word for Mac.

Indeed, testers should keep in mind that Word for Mac is a completely different program from the Windows Word.
Comment 8 Alex Thurgood 2026-01-05 15:13:57 UTC
Confirming with 


Version: 25.8.4.2 (AARCH64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 8; OS: macOS 26.2; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

1) Opened DOCX file in Word for Mac Version 16.104 (25121423)

2) Cmd-A, Cmd-C to select all of the text and copy it to buffer.

3) Switch to LibreOffice, with a blank Writer document.

4) Cmd-V to paste into the Writer document leads to an image of the selected text being inserted.
Comment 9 Alex Thurgood 2026-01-05 15:27:25 UTC
FWIW, the pasting (Cmd-V) works correctly in Apache OpenOffice.org

AOO4116m3(Build:9816)  -  Rev. 277251aa7e

but I see the following xml comment added to the Writer document:

<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
 </o:OfficeDocumentSettings>
</xml><![endif]-->

I'm going to guess that the reported versions (and later) of LO where it doesn't work don't know what to do with this XML and as a result, treat the pasted object as an image.
Comment 10 Alex Thurgood 2026-01-05 15:29:36 UTC
For comparison, the selected text also pastes correctly into a blank macOS Pages document - version 14.4 (7043.0.93).