Other

项目介绍

lebedov/python-pdfbox 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Other 许可证,目前获得 79 个 Star、23 次 Fork。

仓库全名
lebedov/python-pdfbox
开源许可证
Other
Star 数
79
Fork 数
23
未关闭 Issue
11

README 摘要

.. -- rst -- python-pdfbox ============= Package Description Provides a simple Python 3 interface to the Apache PDFBox command-line tools. :target: https://pypi.python.org/pypi/python-pdfbox :alt: Latest Version Requirements Aside from Python 3 and those packages specified in setup.py , python-pdfbox requires java to be present in the system path. Some users have reported issues on MacOS with certain versions of…

完整内容见 GitHub 原始 README 或本页 。

常见问题

python-pdfbox 用什么语言开发?

主要使用 Python 编写,采用 Other 许可证,目前有 79 个 Star。

python-pdfbox 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 python-pdfbox 的源码?

可以直接克隆仓库:git clone https://github.com/lebedov/python-pdfbox.git,默认分支为 master;安装与运行步骤见仓库 README。

python-pdfbox 最近还在维护吗?

仓库最近一次更新为 2023年1月24日,当前有 11 个未关闭 Issue;Star 数为 79,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Python interface to Apache PDFBox command-line tools.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
129
价值分
54
活跃状态
活跃

语言占比

Makefile
Python

README

… -- rst --

python-pdfbox

Package Description

Provides a simple Python 3 interface to the Apache PDFBox <https://pdfbox.apache.org/>_ command-line tools.

… image:: https://img.shields.io/pypi/v/python-pdfbox.svg :target: https://pypi.python.org/pypi/python-pdfbox :alt: Latest Version

Requirements

Aside from Python 3 and those packages specified in setup.py <https://github.com/lebedov/python-pdfbox/blob/master/setup.py>_, python-pdfbox requires java to be present in the system path.

Some users have reported issues on MacOS <https://github.com/lebedov/python-pdfbox/issues/14>_ with certain versions of Java. If you encounter such issues, try a recent release of OpenJDK (14 or later).

Installation

The package may be installed as follows: ::

pip install python-pdfbox

One may specify the location of the PDFBox jar file via the PDFBOX environmental variable. If not set, python-pdfbox looks for the jar file in the platform-specific user cache directory and automatically downloads the latest available version below 3.0.0 and caches it if not present.

Usage

The interface currently exposes only several features in PDFBox (text extraction, conversion to images, extraction of images): ::

import pdfbox
p = pdfbox.PDFBox()
p.extract_text('/path/to/my_file.pdf')   # writes text to /path/to/my_file.txt
p.pdf_to_images('/path/to/my_file.pdf')  # writes images to /path/to/my_file1.jpg, /path/to/my_file2.jpg, etc.
p.extract_images('/path/to/my_file.pdf') # writes images to /path/to/my_file-1.png, /path/to/my_file-2.png, etc.

Notes

Owing to a change in command line interface, python-pdfbox cannot currently use PDFBox 3.0.0.

Development

The latest release of the package may be obtained from GitHub <https://github.com/lebedov/python-pdfbox>_.

Author

See the included AUTHORS.rst <https://github.com/lebedov/python-pdfbox/blob/master/AUTHORS.rst>_ file for more information.

License

This software is licensed under the Apache 2.0 License <https://opensource.org/licenses/Apache-2.0>. See the included LICENSE.rst <https://github.com/lebedov/python-pdfbox/blob/master/LICENSE.rst> file for more information.

评论

暂无评论