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

Update "Other libs" section of README.md #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
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
18 changes: 16 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,9 @@ Pure Python
reportlab is must-have software if you want to programmatically
generate arbitrary PDFs.

- `pyPdf <https://github.com/mstamy2/PyPDF2>`__
- `PyFPDF <https://github.com/reingart/pyfpdf>`__

pyPdf is, in some ways, very full-featured. It can do decompression
PyPDF is, in some ways, very full-featured. It can do decompression
and decryption and seems to know a lot about items inside at least
some kinds of PDF files. In comparison, pdfrw knows less about
specific PDF file features (such as metadata), but focuses on trying
Expand All @@ -698,6 +698,10 @@ Pure Python
cases, it does not actually need to decompress objects -- they
can be left compressed.

PyPDF is not maintained anymore, but it has a successors:
`PyFPDF2 <https://github.com/mstamy2/PyPDF2>`__
and `fpdf2 <https://github.com/PyPDF/fpdf2>`__.

- `pdftools <http://www.boddie.org.uk/david/Projects/Python/pdftools/index.html>`__

pdftools feels large and I fell asleep trying to figure out how it
Expand Down Expand Up @@ -726,9 +730,19 @@ Pure Python
text formats (such as HTML). It has an extensible PDF parser that
can be used for other purposes instead of text analysis."

- `WeasyPrint <https://github.com/Kozea/WeasyPrint>`__

WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF.
It aims to support web standards for printing.
It is based on various libraries but not on a full rendering engine like WebKit or Gecko.
The CSS layout engine is written in Python, designed for pagination,
and meant to be easy to hack on.

non-pure-Python libraries
-------------------------

- `pikepdf <https://github.com/pikepdf/pikepdf>`__ read and write PDF files,
based on C++ lib QPDF.
- `pyPoppler <https://launchpad.net/poppler-python/>`__ can read PDF
files.
- `pycairo <http://www.cairographics.org/pycairo/>`__ can write PDF
Expand Down