
How to install PyPDF2
How to find the documentation of PyPDF2
Explanation of the PyPDF2 License
Backup your data before doing any work
Here is a zip file containing the PDF files we use in the lectures.
The four main PyPDF2 classes
From PyPDF2 version 3.0.0, they deprecated the PdfFileReader. When you run the code, you will get a DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.
PyPDF2 now require PdfReader, PdfWriter, and PdfMerger imports, not PdfFileReader, PdfFileWriter, and PdfFileMerger.
An Introduction to the PdfFileReader class showing how to get the number of pages in a PDF document
Retrieving Document Information with the GetDocumentInfo method
How to use the getFields method to access form fields in a PDF.
How to get the documents page layout
Access the page mode of the document. You can for example set fullscreen mode, bookmarks, or attachments.
How to access the Adobes Extensible Metadata Platform (XMP) data from the document.
Get a single page from the document
Get the text of a page
This section is quite large and contains a lot of information on how to work with pages. We will learn how to scale, rotate, crop, clip, and watermark pages. We will also look into how to split and join pages. In the end, we will see how we can read a pdf to memory instead of having to write to disk all the time.
How to scale pages
How to rotate pages
Inserting blank pages
How to split pages into separate PDF files
How to join several pages into one single document
What are page boxes or boundary boxes of a pdf?
How page boxes work and how to manipulate them.
How to crop a page
How to clip a page
How to add a watermark
How to transform pages. You can Translate, Scale, Rotate, and Skew the pages.
How to read a pdf file to a memory object in order to avoid writing it to disk.
Compress page file size
Here we will use the PdfFileWriter to add javascript, bookmarks, links, metadata, fill in form fields and open our password protected files. I would be very grateful if you could leave a review of the course if you haven't done so already. Thanks!
How to add javascript to a pdf
How to apply password protection and how to read password protection from a pdf.
Fill in writable fields in a document.
How to add bookmarks
How to add links to your document
Add metadata to your document
Here we will explore how to apply our knowledge of PyPDF2 in real applications. These projects could easily be applicable to organizations and clients. Remember to ask any questions you have in the Q&A!
We will search inside a pdf that is stored on the internet for certain keywords.
Merge multiple PDF files into one single PDF.
How to split each PDF in the scripts folder to a separate PDF for each page.
Apply a watermark to every page
Automate the filling of PDF forms with different values from a list.
Convert an image to a PDF
How to open your PDF reader with Python
Get a list of all PDF files inside folders and subfolders
Create folders from a text file containing the folder names.
Open file and save file dialogs with tkinter
Save a word document as a PDF with Python
Description
Become a PDF Power User - Learn how to control & automate PDF's with Python and PyPDF2
Do you have a bunch of PDF files that you need to format or merge? Do you need to overlay images on each page? Maybe you just want to show off at the office! Whatever your needs, you can expect a comprehensive guide going through the nuts and bolts of how automating PDF's works. The course dives straight into PyPDF2, so you will be up and running creating and manipulating your PDFs in no-time.
I have had so much use of PyPDF2 when dealing with PDF's. You can split and merge documents, add metadata, fill in form fields, add javascript, and much more. I am sure you will benefit from learning PyPDF2 if you have even the slightest interest in making your everyday life easier.
After taking this course you will know how to:
Split and merge PDF pages
Scale, rotate, split, join, crop, and transform pages
Read a pdf to memory
Fill in form fields
Insert javascript, bookmarks, and metadata
Overlay images onto PDF pages
Understand how you could apply this knowledge to your own work
Whether it's gaming, business, engineering, or data you're passionate about, this course will give you everything you need for working on PDF's with Python. Take this course today, and begin your journey towards taking back control of the PDF documents!