czproject/pdf-rotate

Rotation of PDF pages.

v2.0.0 2018-06-24 11:51 UTC

README

Rotate PDF documents from PHP.

Become a Patron! Buy me a coffee

Installation

Download a latest package or use Composer:

composer require czproject/pdf-rotate

CzProject\PdfRotate requires PHP 5.3.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
Author: Jan Pecha, https://www.janpecha.cz/