- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 python 包 pdf2img,但出现错误,要求我检查是否安装了 poppler ,所以我在 colab 的代码框中运行了“pip install python-poppler-qt5”,但后来我出现以下错误:
Collecting python-poppler-qt5 Using cached https://files.pythonhosted.org/packages/6a/7d/65a14ece5dd6a1564b576c1ca30b0f5639be64cc55b62b4d2b497159ed43/python-poppler-qt5-0.75.0.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
有人可以给我一个解决方案吗?
最佳答案
首先使用以下命令运行单元:
!apt-get install poppler-utils
这是一个完整的示例笔记本,它安装 deps,下载示例 PDF,然后使用 pdf2image
将其转换为图像以供显示。
https://colab.research.google.com/drive/10doc9xwhFDpDGNferehBzkQ6M0Un-tYq
关于python - 如何在 google colab 上安装 poppler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59498115/
将 pdf 页面转换为图像时,如果输入的 pdf 中未嵌入字体,则使用默认字体替换(通常为 Arial)。但是,我想更改默认字体。 有一个description here但是信息太少了。我不知道如何创
请不要将其标记为重复,因为类似问题的解决方案对我不起作用 我的系统是ubuntu 16.04,我用的是python 2.7.12 我想做的是使用 pdftohtml 将 pdf 文件转换为 html。
我正在使用 poppler 实用程序将 PDF 文档转换为 HTML。但它为每个页面创建单独的 html 文件,但我在将 pdf 转换为 html 后想要一个 HTML 文件。 我使用了以下语法: p
我正在使用 Poppler 在 Qt 和 C++ 中编写一个 pdf 查看器。如何呈现 pdf 页面以适合我的小部件大小? Poppler 提供了一个名为 renderToImage 的方法,它接受一
在 Ubuntu 上交叉编译 Poppler 包时出现以下错误 配置后我给出了命令 make然后在出现以下错误时出现 GlobalParams.cc:81:35: fatal error : font
我已经下载并安装了python-poppler-qt4我现在正在尝试一个简单的 Qt 应用程序来显示 PDF 页面。我已经按照我能够从网络上获得的内容进行操作,即将 PDF 转换为 QImage,然后
语言 C,UI库: GTK,渲染器: poppler 我是 GTK/Poppler 编程的新手,对如何使用 poppler 解决缩放问题有点困惑。当我使用下面的功能时,一切正常,除了缩放(因此 - 滚
尽管文档位于 pypi明确指出 d = popplerqt5.Poppler.Document.load('file.pdf') 这样做会导致以下错误: TypeError: Document.loa
大家好,我在这个存储库中找到了 https://github.com/dept2/Poppler-QML-plugin 一个qml插件,用于将pdf文件显示为qml文件,但我不知道如何使用它有人可以帮
我正在尝试使用 mgufrone 库(https://github.com/mgufrone/pdf-to-html)在 php 中将 pdf 转换为 html。我在我的 Mac 上运行它,它工作正常
最新版本ScraperWiki取决于Poppler (或者 GitHub 是这么说的)。不幸的是,它只指定了如何在 macOS 和 Linux 上获取它,而不是 Windows。 快速谷歌搜索后发现没
我想使用 python 创建一个 Azure 函数应用程序。在我的应用程序中,我需要将 pdf 转换为图像。这个需要用到popple-utils。当我运行应用程序并且想要将 pdf 转换为图像时:co
我想使用 python 创建一个 Azure 函数应用程序。在我的应用程序中,我需要将 pdf 转换为图像。这个需要用到popple-utils。当我运行应用程序并且想要将 pdf 转换为图像时:co
我刚刚下载了 Poppler 0.16.5,但我不知道如何在 cygwin 上安装这个包。谁能告诉我安装 poppler 的正确命令是什么? 最佳答案 实际上Cygwin 1.7.17-1内部有一个p
我有一个 PDF 文档,我想显示其指定的目的地。我正在使用 Poppler 来做到这一点。我需要的是文档中指定目的地的列表,包括名称和位置。目前,我只考虑 XYZ 目的地。 让我们使用LaTeX hy
我对如何以真实比例(即比例 = 100%)显示 PDF 文档感到困惑。 注意:我正在使用 python-poppler-qt4 . Poppler-qt4 提供 a method to get the
我需要一个 pdf 查看器库才能在我的应用程序中使用,我正在使用 C++ 和 QT 我下载了 Poppler和代码示例 The Poppler Qt4 interface library但是,我不知道
我正在使用 pdf2htmlEX为了将pdf文件转换为html。之后我也从文件中提取文本。 问题: 我遇到一个文件,转换后的 html 中的文本不可读: https://dspace.mit.edu/
我正在尝试使用 pdf2image,看来我需要一个名为 propeller 的东西: (sum_env) C:\Users\antoi\Documents\Programming\projects\s
我从 this page 下载了预构建的 win32 poppler 二进制文件.在.pro文件中添加了include文件夹和lib文件夹的路径: INCLUDEPATH += "C:\\test_f
我是一名优秀的程序员,十分优秀!