RTF <-> RTFD 有人吗?如何在 Mac 上的 NSTextView 中显示带有嵌入图像 (Windows) 的 RTF,反之亦然?

发布于 2024-10-03 11:07:40 字数 242 浏览 1 评论 0 原文

我有一些在 Windows 和 Mac 之间共享的 RTF 数据。我使用 RichEdit 控件为 Windows 编辑此数据,因此如果用户插入一些图像,我会得到带有嵌入图像的 RTF。

现在我需要在 Mac 上显示(和编辑)此数据,但 NSTextView 仅支持 RTFD(带附件的 rtf)并且仅跳过嵌入图像。

将带有图像的 RTF (Windows) 转换为 RTFD (Mac) 或反之亦然的正确方法是什么?以前有人这样做过吗?

I have some RTF data shared between Windows and Mac. I use RichEdit control to edit this data for Windows and so if user inserts some images, I get the RTF with embedded images.

Now I need to display (and edit) this data on a Mac, but NSTextView supports only RTFD (rtf with attachments) and just skips embedded images.

What is the proper way to convert RTF with images (Windows) to RTFD (Mac) and vice versa? Has anybody done this before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文