批量 PDF 文件转换成word 文件问题(Aspose.PDF)

tank2254 tank2254 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我用了个 Aspose.pdf 组件 写了个批量转换PDF到DOC的程序

.....
.....
string inputpath="";//要转换的PDF文件
string outfilepath="";//生成Word的文件
Document pdfDocument = new Document();//Create Aspose.pdf.Document
for (int i = 0; i < icount_pdf ;i++)
{
inputpath= listView1.Items[i].Text;// 得到PDF 文件路径
pdfDocument = new Document(inputpath);
.....
.....
pdfDocument.Save(outfilepath, SaveFormat.Doc);//转换为Doc文件
}
问下这样写规范吗? 这样多次循环 pdfDocument = new Document(inputpath); 会不会有问题?
...全文
评论 8
收藏 已收藏
分享
返回顶部
tank2254
.NET Framework 17,748 成员 24,324 内容