czproject/pdf-rotate

Rotation of PDF pages.

Fund package maintenance!
Other

v2.0.1 2022-12-02 09:39 UTC

This package is auto-updated.

Last update: 2024-10-29 14:14:35 UTC


README

Build Status Downloads this Month Latest Stable Version License

Rotate PDF documents from PHP.

Donate

Installation

Download a latest package or use Composer:

composer require czproject/pdf-rotate

CzProject\PdfRotate requires PHP 5.3.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/