Skip to content

Python script to split a pdf file into multiple parts using a CSV file.

Notifications You must be signed in to change notification settings

SiKreuz/split-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Split PDF

Small script that uses a CSV file to automatically split a PDF file into multiple separate PDF files with given file names.

Usage

Usage: main.py [OPTIONS] FILE

Options:
  -s, --separator FILENAME  CSV file with separator page numbers  [required]
  -o, --output_dir PATH     Output directory
  -h, --help                Show this message and exit.

CSV format

The CSV file needs contain the following columns. It's mandatory to include the header in the file, the order is not important.

  • start: First page number
  • end: Last page number
  • name: File name as string (best in in quotation marks)

About

Python script to split a pdf file into multiple parts using a CSV file.

Topics

Resources

Stars

Watchers

Forks

Languages