【发布时间】:2015-12-11 20:24:48
【问题描述】:
如何使用 Aspose 将 .Doc 或 .Docx 转换为单页 Tiff?我知道如何制作多页 tiff,但我希望每个页面都有单独的文件。
【问题讨论】:
如何使用 Aspose 将 .Doc 或 .Docx 转换为单页 Tiff?我知道如何制作多页 tiff,但我希望每个页面都有单独的文件。
【问题讨论】:
您可以使用以下“Aspose.Words for .NET”代码将 Word 文档中的每一页保存为单页 TIFF 图像:
Document doc = new Document(MyDir + "in.docx");
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff);
options.PageCount = 1;
for (int i = 0; i < doc.PageCount; i++)
{
options.PageIndex = i;
doc.Save(MyDir + "Out" + i + ".tiff", options);
}
我与 Aspose 合作,担任开发人员宣传员。
【讨论】: