Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 135 | All time: 9,286 This week: 37 |
Version | License | PHP version | Categories | |||
easy-merge2pdf 1.0.0 | The PHP License | 5 | PHP 5, Graphics, Files and Folders, C... |
EasyMerge2pdf is a PHP library for merging Images and PDFs. It uses the excellent merge2pdf command available for OSX, linux, windows.
composer require ronisaha/easy-merge2pdf
<?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();
}
Files (12) |
File | Role | Description | ||
---|---|---|---|---|
.github (1 directory) | ||||
src (4 files) | ||||
tests (3 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Read me |
Files (12) | / | src |
File | Role | Description |
---|---|---|
CommandRuntimeException.php | Class | Class source |
FileSystemRuntimeException.php | Class | Class source |
InputNormalizer.php | Class | Class source |
Merger.php | Class | Class source |
Files (12) | / | tests |
File | Role | Description |
---|---|---|
ExtendedMerger.php | Class | Class source |
InputNormalizerTest.php | Class | Class source |
MergerTest.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.