Skip to content

pdf file cutter for slides where 2 pages are in one of the file

License

Notifications You must be signed in to change notification settings

arnxxau/pdf-cutter_ver.AKIRA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf-cutter

/!\ Attention: this program only works (by now) on Unix-based OS.

Pdf file cutter for slides where 2 pages are in one of the file

This program converts pdf like this:

pdf with two slides on page

To this: pdf with one slide for page

Usage

python3 main.py file1.pdf [file2.pdf ...] [-q]

This program allows you to convert more than one pdf file at execution. The result pdfs are stored on the folder result/ with the same name than the original file. All the images used in the conversion are stored at the folder images/ and this folder and all its content is deleted at the end of the execution.

Quality option

The -q / --quality argument allows you to increase the resolution of the output, by default is 1. Its range goes from 1 to 3.

quality = 1 | original_size * 1.2

quality=1

quality = 2 | original_size * 3.2

quality=2

quality = 3 | original_size * 5.6

quality=3

Requirements

  • pdf2image
  • img2pdf

You can install them using the command pip install -r requirements.txt

About

pdf file cutter for slides where 2 pages are in one of the file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%