How to delete pages from pdf file using Python?
<p>I have some .pdf files with more than 500 pages, but I need only a few pages in each file. It is necessary to preserve document`s title pages. I know exactly the numbers of the pages that program should remove. How I can do it using Python 2.7 Environment, which is installed upon MS Visual Studio?</p>

<p>Use pyPDF2:</p>

<p><a href="https://github.com/mstamy2/PyPDF2" rel="nofollow">https://github.com/mstamy2/PyPDF2</a></p>

<p>Documentation is at:</p>

<p><a href="https://pythonhosted.org/PyPDF2/" rel="nofollow">https://pythonhosted.org/PyPDF2/</a></p>

<p>It seems pretty intuitive.</p>

python pdf