Download the PHP package softplaceweb/laravel-10-pdf-merger without Composer
On this page you can find all versions of the php package softplaceweb/laravel-10-pdf-merger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download softplaceweb/laravel-10-pdf-merger
More information about softplaceweb/laravel-10-pdf-merger
Files in softplaceweb/laravel-10-pdf-merger
Informations about the package laravel-10-pdf-merger
Laravel PDF Merger based TCPDF
A simple Laravel service provider with some basic configuration for including the TCPDF library to allow you to merge PDF's in your Laravel application.
Compatibility from 1.3 to 1.7 versions, if attempt to merge version greater than 1.4 it convert through Ghosthscript.
The final result is a merged pdf file v 1.7
Requirements
- PHP 8.0+
- Ghostscript (gs command on Linux)
Installation
The Laravel PDF Merger service provider can be installed via composer by requiring the softplaceweb/laravel-10-pdf-merger
package in your project's composer.json
.
for lumen, you should add the following lines:
That's it! You're good to go.
Here is a little example:
or sending pdf's as array ...
You can extend functionality for this class and for a list of all available function take a look at the TCPDF Documentation
Configuration
Laravel Pdf Merger comes with some basic configuration. If you want to override the defaults, you can publish the config, like so:
php artisan vendor:publish --provider="Softplaceweb\PdfMerger\PdfMergerServiceProvider"
Now access config/pdf-merger.php
to customize.
- use_original_header is to used the original
Header()
from TCPDF.- Please note that
PdfMerger::setHeaderCallback(function($pdf){})
overrides this settings.
- Please note that
- use_original_footer is to used the original
Footer()
from TCPDF.- Please note that
PdfMerger::setFooterCallback(function($pdf){})
overrides this settings.
- Please note that
Credits
All versions of laravel-10-pdf-merger with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
tecnickcom/tcpdf Version ^6.4.4
setasign/fpdi Version ^2.3.6
symfony/filesystem Version ^7.2
symfony/process Version ^7.2