PyPDF2 · PyPI
https://pypi.org/project/PyPDF218.05.2016 · PyPDF2 1.26.0 pip install PyPDF2 Copy PIP instructions. Latest version. Released: May 18, 2016 PDF toolkit. Navigation. Project description Release history Download files Project links. Homepage Statistics. View statistics for this project via ...
Python pypdf2 module installation and use analysis | Develop ...
developpaper.com › python-pypdf2-moduleJul 16, 2020 · 2. Example of reading PDF file, taking the specified number of pages and writing to the hard disk. #!/usr/bin/env python # -*- coding: utf-8 -*- import PyPDF2 reader = PyPDF2.PdfFileReader(open('linux.pdf', 'rb')) output = PyPDF2.PdfFileWriter() output.addPage(reader.getPage(1)) output.addPage(reader.getPage(4)) output.addPage(reader.getPage(5)) print( output.getNumPages ()) ා gets the total number of pages written to the page output.encrypt('123456') outputStream = open('PyPDF2-output.pdf
PyPDF2 · PyPI
pypi.org › project › PyPDF2May 18, 2016 · A Pure-Python library built as a PDF toolkit. It is capable of: extracting document information (title, author, …) and more! By being Pure-Python, it should run on any Python platform without any dependencies on external libraries. It can also work entirely on StringIO objects rather than file streams, allowing for PDF manipulation in memory.