使用Aspose.Words把 word转成图片
Aspose.Words
直接上代码
- Document doc = new Document("f:\\333.doc");
- ImageSaveOptions iso = new ImageSaveOptions(SaveFormat.Jpeg);
- iso.Resolution = 128;
- iso.PrettyFormat = true;
- iso.UseAntiAliasing = true;
- for (int i = 0; i < doc.PageCount; i++)
- {
- iso.PageIndex = i;
- doc.Save("D:/test/test" + i + ".jpg", iso);
- }
版权声明:本文为zuqing原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。