Giter Club home page Giter Club logo

simple-python-pdf-parser's Introduction

simple-python-pdf-parser

Whenever I need to do this, it always takes me longer than I want to find and do it. This time I found and tweaked a script to put here.

pdf_master.py

Use this script to both combine and split PDFs. Usage:

pdf_master.py [-c for combine or -s for split] [input file or dir] [output file or dir]

Examples:

pdf_master.py -c c:\temp\pdfs\ c:\temp\combo.pdf
pdf_master.py -s c:\temp\big.pdf c:\temp\out\

Split can also take a base_file_name as input, which will be the beginning of the file name, plus a hyphen and the page number.for the file name. For example:

pdf_master.py -s c:\temp\master.pdf c:\temp\out\ doc

Would create files named:

  • doc-1.pdf
  • doc-2.pdf

pdf_combine.py

Use this script to combine your PDFs. Please specify the following (don't forget to escape the backslashes):

  • source directory
  • target directory
  • target file

pdf_split.py

Use this script to split your PDFs. Please specify the following:

  • source file
  • target directory
  • base name for new files. dash number appended automatically (-1, -2, ..., -99).
    • for example, a base name of 'document' would create files in the specified target_directory named:
      • document-1.pdf
      • document-2.pdf
      • ...
      • document-99.pdf

simple-python-pdf-parser's People

Contributors

cbshearer avatar

Watchers

 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.