Skip to content

Sync creating-and-modifying-pdfs with the updated tutorial - #953

Open
realpython-bot wants to merge 1 commit into
masterfrom
maintenance/creating-modifying-pdf-20261125
Open

realpython-bot wants to merge 1 commit into
masterfrom
maintenance/creating-modifying-pdf-20261125

Conversation

@realpython-bot

Copy link
Copy Markdown
Collaborator

Maintenance update of Create and Modify PDF Files in Python. The article now pins its install commands to pypdf==3.8.1 and reportlab==5.1.1, so the folder gets a matching requirements.txt and a short Requirements section in the README.

  • pypdf stays at 3.8.1 because the concatenating and merging examples use PdfMerger, which pypdf 5.0.0 removed.

  • ReportLab moves from 4.0.0 to 5.1.1. ReportLab 5.1.1 needs Pillow 13, which needs Python 3.11 or later, so the README states that floor.

  • No code changes were needed. The scripts already match the article's blocks, and the two code fixes in the article (a missing PdfWriter import and an output_file typo) are in exercise solutions that this folder doesn't ship.

  • Article draft (update clone): https://realpython.com/pbjt/blog/post/2720/change/

  • Maintenance card: https://trello.com/c/cpfwDlr0

Verification: installed requirements.txt into fresh venvs on Python 3.11.18 and 3.15.2 (pypdf 3.8.1, reportlab 5.1.1, pillow 13.0.0) and ran all six scripts against practice_files/. Scripts 01 to 04 and 06 complete. Script 05 stops at its deliberate FileNotDecryptedError demo (# Raises FileNotDecryptedError), as before. ruff@0.14.1 format --check and ruff@0.14.1 check both pass on the folder.

🤖 Generated with Claude Code

…e and Modify PDF Files in Python

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant