使用 Python 将 PDF 转换为 HTML [英] Converting PDF to HTML with Python

查看:94
本文介绍了使用 Python 将 PDF 转换为 HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 Python 将 PDF 文件转换为 HTML?

How can I convert PDF files to HTML with Python?

我一直在思考 Google 为 PDF 文件编制索引所做(或似乎所做)的工作.

I was thinking something alone the lines of what Google does (or seems to do) to index PDF files.

我的最终目标是设置 Apache 以显示 PDF 文件的 HTML,因此也将不胜感激任何引导我朝这个方向发展的东西.

My final goal is to setup Apache to show the HTML for the PDF files, so anything leading me in that direction would also be appreciated.

推荐答案

poppler 包提供了一个 pdf2html 实用程序您可能可以使用.还有一个 Python 绑定到 libpoppler.

The poppler package provides a pdf2html utility that you might be able to use. There is also a Python binding to libpoppler.

这篇关于使用 Python 将 PDF 转换为 HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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