
pages attribute that you can use to iterate over all of the pages in the PDF in order.įor example, the following for loop prints the text from every page in the Pride and Prejudice PDF:įrom pathlib import Path from PyPDF2 import PdfFileReader # Change the path below to the correct path for your computer. The output you see on your computer may be formatted differently.Įvery PdfFileReader object has a. Note that the output displayed here has been formatted to fit better on this page. Produced by Anonymous Volunteers, and David Widger *** START OF THIS PROJECT GUTENBERG EBOOK PRIDE AND PREJUDICE *** Use it under the terms of the Project Gutenberg License included This eBook is for the use of anyone anywhere at no cost and withĪlmost no restrictions whatsoever. In such cases, it becomes essential to have your page resized and customized for such purposes.The Project Gutenberg EBook of Pride and Prejudice, by Jane Austen These two sizes are used commonly for print publications like magazines and newspapers and for keeping records and business ledgers.

For instance, tabloid and ledger paper sizes (11 x 17 inches) are of the same dimensions, but have different orientation. In fact, there are many different paper sizes that are used across different industries for different purposes.

Often times, professionals will be very specific when it comes to turning PDF files into a physical copy. However, depending on what your PDF content is intended for, you may need those PDF pages to print to a different PDF paper size. When you print a PDF document, it’s completely possible to print that document on paper other than the standard 8.5 x 11 Letter size you work with in MS Word for basic documents– essays, reports, and forms. Yet while the PDF is meant to preserve your content, there are cases where you may need to make some adjustments to the document, such as changing the paper size. The beauty about PDF conversion is that it makes working with your digital content in any number of ways easy.
