https://bugs.documentfoundation.org/show_bug.cgi?id=151693

--- Comment #3 from Thomas Tempelmann <tempelm...@gmail.com> ---
This SO answer shows how to extract the images from the NSAttributedString:

https://stackoverflow.com/a/29153172/43615

So, maybe the easiest approach would be to extract the images from the rtfd,
and then use the plain RTF clipboard flavor and insert the images into that.
Though, unfortunately, the plain RTF does not contain any hint where the
missing image is supposed to be, it seems.

Here's an example rich text that contains "AAA\n" + image + "\nBBB\n" from the
clipboard on my Mac:

{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf610
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 AAA\
\
BBB\
}

I do not know enough about RTF to decypher it all. But there's no image
reference in there, is it?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to