将pdf文件转换为word文档

时间:2016-06-09 06:36:52

标签: c# .net

有没有办法将pdf文件转换为Word文档。因为我在转换时遇到问题。强文

2 个答案:

答案 0 :(得分:2)

检查:http://freepdf.codeplex.com

PdfDocument doc = new PdfDocument();
doc.LoadFromFile("test.pdf");
doc.SaveToFile("PDFtoDoc.doc", FileFormat.DOC);

答案 1 :(得分:0)

您可以使用microsoft的aspose.dll,并可以使用以下代码: Note-trial是免费的,但是为了将来和重复使用,您需要购买。

Document pdfDocument = new Document("input.pdf");

// Save the file into a Microsoft document format
pdfDocument.Save("D://pdftest//TableHeightIssue.doc", SaveFormat.Doc);