ronisaha/easy-merge2pdf

Easy to use PHP library for merging Images and PDFs. Wrapper for ajaxray/merge2pdf

v1.0.0 2021-10-09 13:10 UTC

This package is auto-updated.

Last update: 2022-01-09 13:43:23 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads

EasyMerge2pdf is a PHP library for merging Images and PDFs. It uses the excellent merge2pdf command available for OSX, linux, windows.

Installation

composer require ronisaha/easy-merge2pdf

Usages

<?php
require_once 'vendor/autoload.php';

$m = new \EasyMerge2pdf\Merger(['auto' => true]);
$m->addInput('input.pdf', '1,3-8,2,1');
try {
    $m->merge('out.pdf');
} catch (Exception $exception) {
    echo $exception->getMessage();
}