diff --git a/README.rst b/README.rst index f41fb76..73d0ebe 100644 --- a/README.rst +++ b/README.rst @@ -686,9 +686,9 @@ Pure Python reportlab is must-have software if you want to programmatically generate arbitrary PDFs. -- `pyPdf `__ +- `pypdf `__ - 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 diff --git a/pdfrw/__init__.py b/pdfrw/__init__.py index cf7644a..4d8b07f 100644 --- a/pdfrw/__init__.py +++ b/pdfrw/__init__.py @@ -12,7 +12,7 @@ __version__ = '0.4' -# Add a tiny bit of compatibility to pyPdf +# Add a tiny bit of compatibility to pyPdf / PyPDF2<1.28.0 PdfFileReader = PdfReader PdfFileWriter = PdfWriter diff --git a/pdfrw/pdfreader.py b/pdfrw/pdfreader.py index c2ae030..65b51a4 100644 --- a/pdfrw/pdfreader.py +++ b/pdfrw/pdfreader.py @@ -680,7 +680,7 @@ def __init__(self, fname=None, fdata=None, decompress=False, if decompress: self.uncompress() - # For compatibility with pyPdf + # For compatibility with pyPdf / PyPDF2<1.28.0 private.numPages = len(self.pages) finally: if disable_gc: diff --git a/pdfrw/pdfwriter.py b/pdfrw/pdfwriter.py index 3c887ba..9ab399c 100755 --- a/pdfrw/pdfwriter.py +++ b/pdfrw/pdfwriter.py @@ -294,7 +294,7 @@ def addpage(self, page): new_obj = None return self - addPage = addpage # for compatibility with pyPdf + addPage = addpage # for compatibility with pyPdf / PyPDF2<1.28.0 def addpages(self, pagelist): for page in pagelist: