Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

Outline

Delete pages in a PDF

  • Using this script you can delete the pages you don't want with just one click.
  • I have added a test PDF with the script which you can run to test the script.

Setup instructions

  • We use pdfrw library for this script.
  • To install this library, type pip install pdfrw in your terminal.
  • To run the script run python3 script.py and then enter the information as prompted by the program.

Output

A short demo of how the script works

Here We have a pdf file MyPDF.pdf from which we have to delete pages.

Image 1

Running the script and entering path of the file and the page numbers to be deleted seperated by "," .

Image 2

The pages in the PDF file has been deleted

Image 3

Author

Mohta Rahul Suresh

Disclaimers

Once you delete the pages using this script they cannot be RETRIEVED so be CAREFUL!

Morty Proxy This is a proxified and sanitized view of the page, visit original site.