Skip to content

An experimental alternative of TeX/pdfcrop tool. No need for heavy TeX toolset !

License

Notifications You must be signed in to change notification settings

Jordan-Haidee/pdfcrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdfcrop

An experimental alternative of TeX/pdfcrop tool

Install from source

pip install git+https://github.com/Jordan-Haidee/pdfcrop.git

Install from PyPI

pip install pdfcrop-cli

Usage

$ pdfcrop.exe --help
usage: pdfcrop [-h] [OPTIONS]

╭─ options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮  
│ -h, --help              show this help message and exit                                                                                        │  
│ --input PATH, -i PATH   The input pdf file. (required)                                                                                         │  
│ --output {None}|PATH, -o {None}|PATH                                                                                                           │  
│                         The output path. (default: None)                                                                                       │  
│ --pages {None}|{[INT [INT ...]]}                                                                                                               │  
│                         The page numbers to crop. None denotes all pages. (default: None)                                                      │  
│ --margins {None}|{[INT [INT ...]]}                                                                                                             │  
│                         The margins to reserve. None denotes all 0. If one number is given, it will be applied to four borders. (default:      │  
│                         None)                                                                                                                  │  
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ 

You can use examples/example.pdf to test whether pdfcrop works.

About

An experimental alternative of TeX/pdfcrop tool. No need for heavy TeX toolset !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages