Skip to content

Neyri/dealing_with_pdfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Dealing with pdfs

This project allows you to :

  • concatenate 2 pdf files
  • extract pages from a pdf file

Dependencies

To use these scripts, you will need to install PyPDF2

pip install PyPDF2

Concatenating 2 pdf files

To concatenate 2 files, you just have to execute the script called concat_pdf.py and pass

  • the name of the 2 files you want to concatenate
  • the name of the output file
python concat_pdf.py path/file_name1.pdf path/file_name2.pdf /path/output_name.pdf

Extracting pages from a pdf file

To extract pages from a pdf file, you just have to execute the script called extract_pages.py and pass:

  • the name of the file you want to extract pages from
  • the pages number to extract. The input 2;3;7-10 will extract pages 2, 3 et pages from 7 to 10 (included)
  • the name of the output file
python extract_pages.py path/file_name.pdf pages_number /path/output_name.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages