Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmleroux/pdf-merger
PDF merger for PHP 7
https://github.com/jmleroux/pdf-merger
fpdf pdf-generation tcpdf
Last synced: about 1 month ago
JSON representation
PDF merger for PHP 7
- Host: GitHub
- URL: https://github.com/jmleroux/pdf-merger
- Owner: jmleroux
- Created: 2020-04-30T07:37:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T07:58:08.000Z (over 4 years ago)
- Last Synced: 2024-11-02T00:08:01.539Z (about 2 months ago)
- Topics: fpdf, pdf-generation, tcpdf
- Language: PHP
- Size: 1.18 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDFMerger for PHP 7
Original written by http://pdfmerger.codeplex.com/team/view
Forked from https://github.com/clegginabox/pdf-merger
## Installation
```composer require jmleroux/pdf-merger```
## Example Usage
```php
addPDF('samplepdfs/one.pdf', '1, 3, 4');
$pdf->addPDF('samplepdfs/two.pdf', '1-2');
$pdf->addPDF('samplepdfs/three.pdf', 'all');//You can optionally specify a different orientation for each PDF
$pdf->addPDF('samplepdfs/one.pdf', '1, 3, 4', 'L');
$pdf->addPDF('samplepdfs/two.pdf', '1-2', 'P');$pdf->merge('file', 'samplepdfs/TEST2.pdf', 'P');
```### PDF libraries
You can use either FPDF, TCPDF or tFPDF as the internal PDF library
by providing the right parameter to the constructor:
```php