感谢您的帮助和查看!
测试文件:input.pdf (1.6 MB)
我想PDF转换成Word文件,PDF里面有文本层,但是我使用下面的代码,输出的word只有图片。
//打开源PDF文档
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(fileName);
string dir = Path.GetDirectoryName(fileName);
string pathFileName = Path.Combine(dir, "PDFToDOC_out.doc");
//将文件保存为MS文档格式
pdfDocument.Save(pathFileName, Aspose.Pdf.SaveFormat.Doc);