Convert pdf, doc, ppt to html5 [closed]

三世轮回 提交于 2019-12-31 08:06:07

问题


I've googled (without any luck) for open source software that can convert doc, ppt, and pdf to HTML5. (Exactly what Scribd does) Are there open source equivalents to the type of conversion Scribd does?

If anyone knows of a paid service, that would also work. Scribd has an API, but that's for use with the flash viewer. Also, I would like to host my own content as I need further control over converted html document.


回答1:


You're unlikely to find a single offering that does all this, especially in the open source world. It's more likely that you'll end up relying on a mishmash of things, and may even need to chain some converters in order to get to HTML. (Eg PDF -> ps -> HTML)

OpenOffice supports conversion to HTML, and can be called from the command line.

http://pdftohtml.sourceforge.net/ looks reasonably good at converting pdf to html.

For Doc that is Word ML or OpenXML format it's conceivable that you could use XSLT transforms since both input and output formats are XML. I've seen some stylesheets floating around the net that do this, but YMMV.

Incidentally, why is there a specific requirement for open source? MS Powerpoint already supports save-as-HTML for example.




回答2:


Open Office will convert pdf to html but you'll take a hit to design quality.

I suggest either: Crocodoc as a paid service (It provides different flavours for different platforms such as Python,Ruby,Java,PHP Developers are allowed to work on their APIs.) or waiting for an official Adobe tool (it's in the works).




回答3:


For PDF to HTML conversion, pdf2htmlEX seems like a pretty good tool (looking at all the examples/samples):

https://github.com/coolwanglu/pdf2htmlEX




回答4:


For pdf there is an open source project started by mozilla and it's very good: https://github.com/mozilla/pdf.js/

You can see a hello world example : https://github.com/mozilla/pdf.js/tree/master/examples/helloworld

For the rest of document types I think LibreOffice said that are planning to build something in html5, but so far there isn't anything done.




回答5:


http://wvware.sourceforge.net/

wvHtml: convert your Word document into HTML4.0.

Possibly: http://www.abisource.com/ but in this case it looks like "open doc" > "export html" manually, maybe plugins help. Not sure, what do you mean: "source software that can convert".

Or this: http://www.zope.org/Members/sf/NuxDocument

Also the pdftohtml will give you an html page output.But you will have to work upon its graphical interface.Since it doesn't seems to be very interactive.




回答6:


I know the question is bit old however I have found new Open source tool called flaxpaper http://flexpaper.devaldi.com/



来源:https://stackoverflow.com/questions/3199659/convert-pdf-doc-ppt-to-html5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!