我从站点下载了 PDFlib tar 文件。我无法获得在 ubuntu 上安装它并将其配置为 python 的方法。我是使用 ubuntu 的新手。谁能告诉我安装 PDFlib 的方法? 我从这个链接下载了 tar 文件
请您参考如下方法:
来自 PDFlib TET 的手册:
Installing the TET edition for Python: The Python extension mechanism works by loading shared libraries at runtime. For the TET binding to work, the Python interpreter must have access to the TET Python wrapper which will be searched in the directories listed in the
PYTHONPATHenvironment variable.
TET Python 包装器是您在下载的压缩包中找到的 tetlib_py.so(为您的 Python 版本选择正确的包)。除了 tetlib_py.so 文件 PDFLib/TET.py 和 PDFlib/__init__.py 必须在同一目录中可用。
