Skip to content

lukdog/pyPdfTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

pyPdfTools

tools to manage PDF files easily

Install module pyPDF2

pyPDFTools use a library to manage single PDF files, you can download this library here: pyPDF2

Then you can install pyPDF2 module with command: python setup.py install

Available tools

pdfMerger

This tool merge multiple PDF files in a single one with different options

usage: pdfMerger [-h] [-s | -a] [-o OUTPUT] [-r i [i ...]] [-q | -v]
                 firstFile otherFile [otherFile ...]
positional arguments:
  firstFile             First file to be merged
  otherFile             Other pdf Files that have to be merged with first

optional arguments:
  -h, --help            show this help message and exit
  -s, --sequential      Sequential method, files will be merged in the same
                        order as user specified them
  -a, --alternate       Alternate method, files will be merged taking one page
                        from each file at a time
  -o OUTPUT, --output OUTPUT
                        FileName for the output file
  -r i [i ...], --reverse i [i ...]
                        Select index of otherFile that have to be reversed
                        before merging
  -q, --quiet           Set a Quiet Output for the Script
  -v, --verbose         Set a Verbose Output for the Script

Example:

If you have to scan a document composed by a lot of sheet you can scan first the odd pages, after that you can turn paper block and scan the even pages in reverse order, with this tool you can simply merge odd and even pages in final document in this way:

pdfMerger -q -r 0 -o final.pdf -a odd.pdf even.pdf

this example is situation that lead me to develop this tools. Yes i know, there are a lot of similar tools for all os, but i wanted something that was really customizable and light

Using it in python Project
from pdfMerger import PdfMerger

About

tools to manage PDF files easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages