https://github.com/rmathsphys/pdf-utilities
CLI based set of simple utility scripts for quickly manipulating PDFs.
https://github.com/rmathsphys/pdf-utilities
cli pdf python-script
Last synced: 9 months ago
JSON representation
CLI based set of simple utility scripts for quickly manipulating PDFs.
- Host: GitHub
- URL: https://github.com/rmathsphys/pdf-utilities
- Owner: rmathsphys
- License: mit
- Created: 2023-06-07T08:16:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-07T09:42:05.000Z (over 2 years ago)
- Last Synced: 2025-02-14T14:51:35.804Z (11 months ago)
- Topics: cli, pdf, python-script
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PDF Utilities
=============
CLI based set of simple utility scripts for quickly manipulating PDFs. Written in Python.
# Dependencies.
All PDF handling is done using `pypdf` provided by [py-pdf/pypdf](https://github.com/py-pdf/pypdf).
# Usage.
**Rotating Pages.**
Rotate some pages in "example.pdf" by 180 degrees. Rotates all the pages if the range is not specified.
```
pdf-rotate.py example.pdf 180 1 3 5-8 11
```
Creates a new PDF by default. Use the `-o` flag to overwrite the input file.
**Deleting Pages.**
Delete the specified pages from "example.pdf". Doesn't delete any page if the range is not specified.
```
pdf-delete.py example.pdf 1 3 5-8 11
```
Creates a new PDF by default. Use the `-o` flag to overwrite the input file.
**Keeping Pages.**
Keep only the specified pages from "example.pdf". Keeps all the pages if the range is not specified.
```
pdf-keep.py example.pdf 180 1 3 5-8 11
```
Creates a new PDF by default. Use the `-o` flag to overwrite the input file.
**Rotating Pages.**
Combine all the specified pdf files into a single pdf, in the given order.
```
pdf-combine.py input1.pdf input2.pdf input3.pdf
```