Rotate PDF documents from PHP.
Download a latest package or use Composer:
composer require czproject/pdf-rotate
CzProject\PdfRotate
requires PHP 5.3.0 or later.
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/