In the preceding example, we used the PyPDF2 module. Next, we created a pdf file
object. PdfFileReader() will read the created object. After reading the PDF file, we
are going to get the number of pages of that pdf file using the numPages property. In
this case, it is 481 pages.