Metadata-Version: 2.4
Name: rotatepdf
Version: 2025.3.25
Summary: Rotate PDF easily from command line
Author: Andre Miras
Project-URL: Homepage, https://github.com/AndreMiras/rotatepdf
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyPDF2<3
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: tox; extra == "dev"
Dynamic: license-file

# rotatepdf

[![Tests](https://github.com/AndreMiras/rotatepdf/actions/workflows/tests.yml/badge.svg)](https://github.com/AndreMiras/rotatepdf/actions/workflows/tests.yml)
[![PyPI release](https://github.com/AndreMiras/rotatepdf/actions/workflows/pypi-release.yml/badge.svg)](https://github.com/AndreMiras/rotatepdf/actions/workflows/pypi-release.yml)
[![PyPI version](https://badge.fury.io/py/rotatepdf.svg)](https://badge.fury.io/py/rotatepdf)

Rotate pdf pages from command line.

## How to use

Here is an example for rotating page 1 to page 3 by 90 degrees clockwise.

```shell
rotatepdf.py --src src.pdf --dst dst.pdf --rotate-right 1-3
```

It's also possible to rotate in multiple ways in one go.

```shell
rotatepdf.py --src src.pdf --dst dst.pdf --rotate-right 1-3 --rotate-180 4-10
```

## Installing

```shell
pip install -e git://github.com/AndreMiras/rotatepdf.git#egg=rotatepdf
```

## Dev

Run tests:

```shell
make pytest
# or
tox -e py
```

Lint:

```shell
make lint
```

Format:

```shell
make format
```
