PDF格式转换为任何可以由Word打开 [英] Convert PDF to anything which can be opened by Word

查看:131
本文介绍了PDF格式转换为任何可以由Word打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想通过C#来做到这一点,所有的内联,无的Process.Start()...和自由......可能是RTF,HTML,无论情况而定......只要我能在Word中打开,我可以再关保存为RTF,我就可以一个RichTextBox内加载。

Want to do it via C#, all inline, no Process.Start()...and free...could be RTF, HTML, whatever the case may be...as long as I can open in Word, which I can then save off as RTF, which I can then load within a RichTextBox.

我知道类似的问题已经充斥这个论坛多年来,没有什么似乎要解决什么,我问,虽然

I'm aware similar questions have flooded this forum over the years, nothing that seems to address what I am asking though.

编辑:

看起来像它可以在这里完成:<一HREF =htt​​p://www.itextpdf.com/examples/iia.php?id=275相对=nofollow> http://www.itextpdf.com/examples/iia.php?id=275

Looks like it can be done here: http://www.itextpdf.com/examples/iia.php?id=275

推荐答案

使用一个PDF库,如的 iTextSharp的解析PDF。您将能够从PDF访问所有的文字和图像,并转换成任何你想要的代表性。

Use a PDF library, such as iTextSharp to parse the PDF. You will be able to access all text and images from the PDF and convert to whatever representation you want.

有其他的解决方案(如安装的 xpdf的和炮击它 - 它会转换如果有合适的命令行参数传递到HTML)

There are other solutions (such as installing xpdf and shelling to it - it will convert to html if the right command line arguments are passed in).

这篇关于PDF格式转换为任何可以由Word打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆