Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Add comparison with pdfplumber #1837

Merged
merged 6 commits into from
May 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions docs/meta/comparisons.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@ than PyPDF2. See [history of pypdf](history.md).
[QPDF]: https://github.com/qpdf/qpdf


## pdfminer
## pdfminer.six
RitchieP marked this conversation as resolved.
Show resolved Hide resolved

[`pdfminer.six`](https://pypi.org/project/pdfminer.six/) is capable of
extracting the [font size](https://stackoverflow.com/a/69962459/562769)
/ font weight (bold-ness). It has no capabilities for writing PDF files.

## pdfrw / pdfminer / pdfplumber
## pdfplumber
RitchieP marked this conversation as resolved.
Show resolved Hide resolved
[`pdfplumber`](https://pypi.org/project/pdfplumber/) is a library focused mainly on extracting data from the file. Since `pdfplumber` is built on top of `pdfminer.six`, there are **no capabilities of exporting or modifying a PDF file**. It was also mentioned in [#440 (discussions)](https://github.com/jsvine/pdfplumber/discussions/440#discussioncomment-803880). However, `pdfplumber` is capable to convert a PDF file into an image, draw lines and rectangles on the image, and save it as an image file.
MartinThoma marked this conversation as resolved.
Show resolved Hide resolved

The community over at `pdfplumber` is also active in answering questions and the library is actively maintained as of now.
MartinThoma marked this conversation as resolved.
Show resolved Hide resolved

## pdfrw / pdfminer
MartinThoma marked this conversation as resolved.
Show resolved Hide resolved

I don't have experience with any of those libraries. Please add a
comparison if you know pypdf and [`pdfrw`](https://pypi.org/project/pdfrw/)!
Expand All @@ -66,8 +71,6 @@ Please be aware that there is also
Then there is [`pdfrw2`](https://pypi.org/project/pdfrw2/) which doesn't have
a large community behind it.

And there is also [`pdfplumber`](https://pypi.org/project/pdfplumber/)

## Document Generation

There are (Python) [tools to generate PDF documents](https://github.com/py-pdf/awesome-pdf#generators).
Expand Down