Amazing-Python-Scripts

Форк
0

README.md

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!

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.