从word文件中分离图像和文本。 [英] Separate image and text from word file.

查看:112
本文介绍了从word文件中分离图像和文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有文字和图像的文字文件。我的问题是,我想将文字和图像与文字文件分开,并为文本创建两个文件文件,为图像创建第二个文件。

I have a word file with text and image.My Problem is that i want to be separate the text and image from word document and create two word file one for text and second for images.

推荐答案

你在.net中有办公室互操作工具: http://msdn.microsoft.com/de-de/library/microsoft.office.interop.word(v = office.11​​).aspx [ ^ ] 。您可以使用Paragraphs集合来解析文本,使用Shapes和InlineShapes集合来获取图像。
You have office interop tools in .net: http://msdn.microsoft.com/de-de/library/microsoft.office.interop.word(v=office.11).aspx[^]. You can use the Paragraphs collection to parse text, and Shapes and InlineShapes collections to get the images.


这篇关于从word文件中分离图像和文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆