Search results
We are careful with introducing potentially breaking changes, but we will do them if they provide value for the community on the long run. We hope and think that deprecations will not happen soon again. If they do, users can rely on the following procedure.
Aug 28, 2023 · Output: "PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead." So I updated to this Python code:
PyPDF2 is deprecated, please use pypdf. Welcome to PyPDF2. PyPDF2 is a free and open source pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. It can also add custom data, viewing options, and passwords to PDF files. PyPDF2 can retrieve text and metadata from PDFs as well.
- Installation
- Usage
- Contributions
You can install PyPDF2 via pip: If you plan to use PyPDF2 for encrypting or decrypting PDFs that use AES, youwill need to install some extra dependencies. Encryption using RC4 is supportedusing the regular installation.
PyPDF2 can do a lot more, e.g. splitting, merging, reading and creatingannotations, decrypting and encrypting, and more. Please see the documentationfor more usage examples! A lot of questions are asked and answeredon StackOverflow.
Maintaining PyPDF2 is a collaborative effort. You can support PyPDF2 by writingdocumentation, helping to narrow down issues, and adding code.
6 days ago · We deprecated a lot of the old PyPDF2 API that was either not following PEP8 naming styles or was not using a property. Users coming from PyPDF2 might want to switch to pypdf<4.0.0 first to get helpful error messages that show the new API in their specific cases.
This guide helps you to make the step from PyPDF2 1.x (or even the original PyPpdf) to PyPDF2>=2.0.0. You can execute your code with the updated version and show deprecation warnings by running python -W all your_code.py.
People also ask
Is pypdf2 deprecated?
What is pypdf2?
What is the last version of pypdf2?
Is pypdf maintained?
What happened to pypdf2 API?
Should I switch to pypdf?
May 31, 2022 · The 2.0.0 release of PyPDF2 includes three core changes: Dropping support for Python 3.5 and older. Introducing type annotations. Interface changes, mostly to have PEP8-compliant names; We introduced a deprecation process that hopefully helps users to avoid unexpected breaking changes. Breaking Changes (DEP) PyPDF2 2.0 requires Python 3.6+.