Giter Site home page Giter Site logo

pypdftools's Introduction

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

pypdftools's People

Contributors

lukdog avatar

Stargazers

Emanuele Fia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.