czproject / pdf-rotate
Rotation of PDF pages.
Fund package maintenance!
Other
Installs: 41 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 3
Open Issues: 1
Requires
- php: 8.0 - 8.4
- setasign/fpdf: ^1.8
- setasign/fpdi: ^2.6
This package is auto-updated.
Last update: 2025-06-10 18:57:02 UTC
README
Rotate PDF documents from PHP.
Installation
Download a latest package or use Composer:
composer require czproject/pdf-rotate
CzProject\PdfRotate
requires PHP 8.0 or later.
Usage
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
Author: Jan Pecha, https://www.janpecha.cz/