Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions creating-and-modifying-pdfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,14 @@ There are two subfolders in this folder:

The source code files are organized by section of the tutorial, and the start of each subsection is indicated with comments.

## Requirements

The code requires Python 3.11 or later. Install the pinned versions of `pypdf` and ReportLab that the tutorial uses with:

```sh
$ python -m pip install -r requirements.txt
```

The tutorial pins `pypdf` to 3.8.1 because the concatenating and merging examples use the `PdfMerger` class, which later `pypdf` releases removed.

The content of the companion tutorial was adapted from the "Creating and Modifying PDF Files" chapter of the book [*Python Basics: A Practical Introduction to Python 3*](https://realpython.com/products/python-basics-book/). If you enjoy this tutorial, check out the full book!
2 changes: 2 additions & 0 deletions creating-and-modifying-pdfs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pypdf==3.8.1
reportlab==5.1.1
Loading