Skip to content

ronisaha/easy-merge2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyMerge2pdf

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]);
or 
$m = new \EasyMerge2pdf\Merger(['binary' => '/path/to/merge2pdf']);
$m->addInput('/path/to/input.pdf', '1,3-8,2,1');
try {
    $m->merge('/path/to/out.pdf');
} catch (Exception $exception) {
    echo $exception->getMessage();
}

About

Easy to use PHP library for merging Images and PDFs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages