Skip to content

pang-yy/procPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

procPDF

A CLI tool for processing pdf files.
Built using PyPDF2

Installation

pip install -r requirements.txt

Usage

python procpdf.py <command> [option]

List of Commands and Options

  • listall [-e EXTENSION]
    
  • merge (-a | -n | -s FILENAME...| -e FILENAME...) [-o OUTPUT_FILENAME]
    
  • encrypt FILENAME [-R/--remove]
    
  • decrypt FILENAME [-R/--remove]
    
  • extractImg FILENAME
    
    # make sure the folder *extracted_images* is empty, if exists
    
  • compress FILENAME
    
  • metadata -r FILENAME
    metadata -w FILENAME [--author AUTHOR] [--creator CREATOR] [--producer PRODUCER] 
                         [--subject SUBJECT] [--title TITLE] [--new-filename FILENAME]
    

Run python procpdf.py <command> [-h] for more details.