Giter VIP home page Giter VIP logo

pdfmanager's Introduction

Manipulate PDF Files

Merge, split, encrypt... your files files by using a command line python program

List of available possibilities

  1. Merge Merge different pdfs into a single one
  2. Split Separate all the pages of a pdf, they will be renamed in the following order
  3. Rotate Rotate the pages of a pdf by 90, 180 or 270 degrees.
  4. toText Convert an entire pdf into text, which will be saved in a .txt file. WARNING the contents may not be readable.
  5. Encrypt Encrypt a pdf with a password. Be careful, it will be a copy of the pdf, the original will not be encrypted.
  6. Decrypt Decrypt a pdf if you have the password.

Examples

Split a single pdf :

python pdf.py -f test.pdf -s

Merge 3 pdfs, the order passed in parameter will be the order of the merge

python pdf.py -f file1.pdf file2.pdf file3.pdf -m

Encrypt the contents of two documents and display the different steps

python pdf.py -f file1.pdf file2.pdf --encrypt --verbose
Password:

All possibilities

python pdf.py --help

usage: pdf.py [-h] [-f FILE [FILE ...]] [-m] [-s] [-r] [--rotation ROTATION]
              [--verbose] [--txt] [--encrypt] [--decrypt]

Manipulate your pdf files

optional arguments:
  -h, --help            show this help message and exit
  -f FILE [FILE ...], --file FILE [FILE ...]
                        list of pdf
  -m, --merge           merge PDFs
  -s, --split           split PDFs
  -r, --rotate          rotate the pdf
  --rotation ROTATION   Value of the rotation
  --verbose             Print the different steps
  --txt                 convert PDF into txt
  --encrypt             Encrypt a file
  --decrypt             Decrypt a file

Author

Raphael Teitgen [email protected]

pdfmanager's People

Contributors

jokfun avatar

Watchers

 avatar  avatar

pdfmanager's Issues

Splitt name with "." not correct

If you want to split a file with a "." in its name. Like in my case with dates then it uses the first dot and not the last one. Example: 12.02.2021filename.pdf will be 12_splitted_0.pdf to solve this use rindex

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.