https://bugs.documentfoundation.org/show_bug.cgi?id=151693
Bug ID: 151693
Summary: Copying text with images on a Mac, e.g. from TextEdit,
loses the image when pasting to LO Writer
Product: LibreOffice
Version: 7.4.2.3 release
Hardware: All
OS: macOS (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
Basically, LO is not able to decode Apple's "rtfd" format (Apple fails to write
Microsoft's RTF format if images are included and instead has come up with
their own format).
Steps to Reproduce:
Open TextEdit.app on a Mac, make a new document, place some text and an image
into the document, Select All, Copy. Paste into a LO Writer document.
Actual Results:
Only the text appears, while the picture is missing
Expected Results:
should paste text and picture as expected
Reproducible: Always
User Profile Reset: No
Additional Info:
The clipboard contains the rtfd data (type "com.apple.flat-rtfd"), which is a
container that contains a plain rtf part and the referenced images as separate
items.
LO needs to decode this container in order to extract the text and the
image(s).
This can be achieved with the Mac-specific type NSAttributedString, which has
the `initwithrtfd:` function. Once the string is constructed, I hope LO has
some functions which allows it to insert that into the document.
https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc
--
You are receiving this mail because:
You are the assignee for the bug.