A library in php for iLovePDF Api
You can sign up for a iLovePDF account at https://developer.ilovepdf.com
Develop and automate PDF processing tasks like Compress PDF, Merge PDF, Split PDF, convert Office to PDF, PDF to JPG, Images to PDF, add Page Numbers, Rotate PDF, Unlock PDF, stamp a Watermark and Repair PDF. Each one with several settings to get your desired results.
PHP 7.4 and later.
You can install the library via Composer. Run the following command:
composer require ilovepdf/ilovepdf-php
To use the library, use Composer's autoload:
require_once('vendor/autoload.php');
Simple usage looks like:
use Ilovepdf\Ilovepdf;
$ilovepdf = new Ilovepdf('project_public_id','project_secret_key');
$myTask = $ilovepdf->newTask('compress');
$file1 = $myTask->addFile('file1.pdf');
$myTask->execute();
$myTask->download();
See samples folder.
Please see https://developer.ilovepdf.com/docs for up-to-date documentation.