这里不讲Aspose.Words,以下是Aspose.Words中Word转图片代码片段
[C#] 纯文本查看 复制代码
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);
}
|