如下:
1、2003版本有对应的处理方法,将图片文件转为文字内容。
http://jingyan..com/article/c74d60007bc7510f6a595d3c.html
软件可下载:Microsoft Office Document Imaging简体中文版
2、也可以使用ocr文字识别软件进行转换。
Ⅱ 怎么把word文档的图片考出来
1,复制图片,粘贴到画图里,另存为XX.bmp。
2,把整篇WORD文档另存为网页,点另存为-网页(*.HTM;*.HTML)这项。然后会有一个文件夹,看吧,图片在里面了。这种方法不改变原图片大小。
Ⅲ 救急:怎么提取word中的图片
方法1、启动word的图片编辑工具,然后另存为;
方法2、必沙绝技:按键盘上的Prt Sc键截屏,然后打开画图工具、粘铁,然后在画图工具里裁剪截取想要的部分。
Ⅳ C#怎么读取word文档中内容包括图片
从菜单中选择“文件-另存为”,选择文件类型为WEB页,然后保存。在文件夹中找到保存WEB页的文件夹,我们会发现WORD、POWERPOINT自动生成了一个名字为原文档标题.files的文件夹,原文档中的所有图片已经自动顺序命名,并保存在这个*.files文件夹中,其中还包括POWERPOINT文档的背景图片。
Ⅳ C# winform读取word中的图片、文字并保存
你的docWord是不是null
//
Word 开发人员参考
Paragraphs集合对象
所选内容、范围或文档中的Paragraph对象的集合。
上面是官方API说明,意思是【选择】的段落内容,所以遍历前先全选文章。
官方api可以在word中查看
office2007:视图-宏-查看宏-开发帮助
office2003:工具-宏-查看宏-开发帮助
示例
本示例将活动文档第一节中所有段落集合的行距设置为单倍行距。
Visual Basic for Applications
ActiveDocument.Sections(1).Range.Paragraphs.LineSpacingRule = _
wdLineSpaceSingle
本示例将选定内容的首段的行距设置为双倍行距。
Visual Basic for Applications
Selection.Paragraphs(1).LineSpacingRule = wdLineSpaceDouble
Ⅵ 用VC读取word中的图片
这实际上不是一个vc问题,
而是你会不会用word的com接口的问题.
所有的office程序,
都提供idispatch接口...
Ⅶ 如何提取word文档中的图片
将此文档复制成一个新文档后,打开,将不需要的才删去,剩下图片后,点另存为,选择*.jpg类别,然后按确定。
Ⅷ 如何用C++读取word中的图片,最好显示在MFC
#include <stdlib.h> #include <stdio.h> int main () { FILE * fpPhoto, * fpText, * fpTarget ; int iRead ; char szBuf[100] ; printf ("请输入第一个文件名(jpg):\n") ; gets (szBuf) ; fpPhoto = fopen (szBuf, "rb") ; printf ("请输入第二个文件名(txt):\n") ; gets (szBuf) ; fpText = fopen (szBuf, "rb") ; printf ("请输入目的文件名(jpg):\n") ; gets (szBuf) ; fpTarget = fopen (szBuf, "wb") ;
Ⅸ 如何用c语言读取图片
#include
using namespace std;
#define Twoto1(i,j,w) i*w+j
void createimage(unsigned char *&img, int w, int h)
{img = new unsigned char[w*h];}
void delateimage(unsigned char*img)
{delete []img;}
void readimage(unsigned char*img, int w, int h, char *fname)
{
FILE *fp;
fopen_s(&fp,fname, "rb");
if (fp == NULL){ cout << "error" << endl; return; }
size_t result;
result=fread(img , sizeof(unsigned char), w*h, fp);
if (result != w*h)
{
cout << "Reading error" << endl;
return;
}
else
cout << "Reading Ok!" << endl;
fclose(fp);
}
void mobanjuanji(unsigned char image, unsigned char*image1, int w, int h, float moban[5][5])
{
for (int i = 0; i for (int j = 0; j if (iw - 3 || j>h - 3)
image1[Twoto1(i,j,w)] = 0;
else
{
float temp = 0;
for (int m = 0; m<5; m++)
for (int n = 0; n<5; n++)
{
temp += (image[Twoto1(i-2+m,j-2+n,w)] moban[m][n]);
}
if (temp>255) image1[Twoto1(i, j, w)] = 255;
else if (temp<0) image1[Twoto1(i, j, w)] = 0;
else image1[Twoto1(i, j, w)] = temp;
}
}
void saveimage(unsigned char *img, int w, int h, char *fname)
{
FILE *fp;
fopen_s(&fp, fname, "wb");
if (fp == NULL) { cout << "error" << endl; return; }
size_t result;
result = fwrite(img, sizeof(unsigned char), w*h, fp);
if (result != w*h)
{
cout << "Write error" << endl;
return;
}
else
cout << "Write Ok!" << endl;
fclose(fp);
}
void main()
{
unsigned char *img;
unsigned char *img1;
float moban[5][5] = { {0,0,0,0,0},{0, -1, 0, 1, 0 }, { 0, -2, 0, 2, 0 }, { 0, -1, 0, 1, 0 }, { 0,0,0,0,0 } };
//float moban[5][5] = { 0 };
int w = 512, h = 512;
createimage(img, w, h);
createimage(img1, w, h);
readimage(img, w, h, "E:ss.raw");
mobanjuanji(img, img1,w, h, moban);
saveimage(img, w, h, "E:ss_1.raw");
saveimage(img1, w, h, "E:ss_2.raw");
delateimage(img);
delateimage(img1);
}
(9)怎么用c读取word里的图片扩展阅读
C语言实现一个图片的读出和写入
#include <stdlib.h>
#include <windows.h>
int file_size(char* filename)//获取文件名为filename的文件大小。
{
FILE *fp = fopen(filename, "rb");//打开文件。
int size;
if(fp == NULL) // 打开文件失败
return -1;
fseek(fp, 0, SEEK_END);//定位文件指针到文件尾。
size=ftell(fp);//获取文件指针偏移量,即文件大小。
fclose(fp);//关闭文件。
return size;
}
int main ()
{
int size=0;
size=file_size("qw");
printf("%d ",size);
FILE * pFile,*qw;
char *buffer=(char*)malloc(sizeof(char)*size);
qw =fopen("qw","r");
pFile = fopen ( "qwe" , "wb" );
printf("%d==
",pFile);
printf("%d ",size);
fread(buffer,1,size,qw);
fwrite (buffer , sizeof(byte), size , pFile );
fclose (pFile);
rename("qwe","Groot.jpg");
return 0;
}
Ⅹ 怎样将插入Word文档中的图片提出来
选中你要提取的图片,复制(ctrl+c)
开始——所有程序——附件——画图,打开后粘贴(ctrl+v)然后选择“另存为”就OK了。格式可以自己选