批量 PDF 文件转换成word 文件问题(Aspose.PDF)
我用了个 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); 会不会有问题?