https://github.com/czproject/pdf-rotate
Rotation of PDF pages in PHP
https://github.com/czproject/pdf-rotate
pdf-manipulation php
Last synced: 9 months ago
JSON representation
Rotation of PDF pages in PHP
- Host: GitHub
- URL: https://github.com/czproject/pdf-rotate
- Owner: czproject
- License: other
- Created: 2016-10-18T15:16:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T11:01:54.000Z (over 3 years ago)
- Last Synced: 2024-09-17T23:15:02.156Z (almost 2 years ago)
- Topics: pdf-manipulation, php
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# PdfRotate
[](https://github.com/czproject/pdf-rotate/actions)
[](https://packagist.org/packages/czproject/pdf-rotate)
[](https://github.com/czproject/pdf-rotate/releases)
[](https://github.com/czproject/pdf-rotate/blob/master/license.md)
Rotate PDF documents from PHP.
## Installation
[Download a latest package](https://github.com/czproject/pdf-rotate/releases) or use [Composer](http://getcomposer.org/):
```
composer require czproject/pdf-rotate
```
`CzProject\PdfRotate` requires PHP 8.0 or later.
## Usage
``` php
use CzProject\PdfRotate\PdfRotate;
$pdf = new PdfRotate;
$sourceFile = '/path/to/source.pdf';
$outputFile = '/path/to/output.pdf';
$pdf->rotatePdf($sourceFile, $outputFile, $pdf::DEGREES_90);
```
------------------------------
License: [New BSD License](license.md)
Author: Jan Pecha, https://www.janpecha.cz/