Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Merging and Splitting PDFs

In this lesson, you’ll learn how to merge and split PDFs. It’s super useful to know how to manipulate PDFs in those ways. You can also check out the argparse module.

donrogstad on Feb. 25, 2020

I notice that you pass the file name to the rotate_pages routine, but you open the pdf_reader with “path” variable instead of the passed filename. I guess the routine still works since path is define below and is set as a Global variable, but you may want to change the code to use the passed variable.

donrogstad on Feb. 26, 2020

I just noticed that comments are not separated by lessons so the above comment about the path variable refers to the rotate_pages.py script in lesson 2.

muzixaba on Feb. 26, 2020

Please give link to jupyter_notebook.pdf

Andrew Stephen RP Team on Feb. 27, 2020

Hi @muzixaba, In order to create your own jupyter_notebook.pdf, you can go to the Real Python tutorial for Jupyter Notebook - An Introduction and print it to a .pdf from your browser.

Become a Member to join the conversation.