2017 © Pedro Peláez
 

library pdfmerger

Lib to merge multiple pdf

image

fheider/pdfmerger

Lib to merge multiple pdf

  • Wednesday, October 4, 2017
  • by fheider
  • Repository
  • 1 Watchers
  • 1 Stars
  • 97 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 47 % Grown

The README.md

PDFMerger for PHP

Simple PHP class for merging multiple PDF to one single PDF, (*1)

Installation

Use composer to install PDFMerger. Change your minium stability to "RC", because a dependent package (FPDI) is only available as RC currently., (*2)

composer install fheider/pdfmerger
{
  "require": {
      "fheider/pdfmerger": "^1.0"
  },
  "minimum-stability": "RC"
}

Getting started

Create an empty PDF, (*3)

use PDFMerger\Pdf;
$pdf = new Pdf();

Add multiple PDFs. It is possible to extract single pages or page ranges., (*4)

$pdf->add('files/1.pdf');             // -- merge all pages
$pdf->add('files/2.pdf', [2]);        // -- merge only page 2
$pdf->add('files/3.pdf', [2-5]);      // -- merge page 2 to 5
$pdf->add('files/4.pdf', [1, 3-5]);   // -- merge page 1 and 3 to 5

Output the merged PDF., (*5)

$pdf->output('merged.pdf');         // -- send pdf to inline browser
$pdf->download('merged.pdf');       // -- force download
$pdf->save('merged.pdf');           // -- save merged pdf to new file

The Versions

04/10 2017

dev-master

9999999-dev https://github.com/fheider/pdfmerger

Lib to merge multiple pdf

  Sources   Download

MIT

The Requires

 

php pdf pdf merge pdf concat

04/10 2017

1.1.0

1.1.0.0 https://github.com/fheider/pdfmerger

Lib to merge multiple pdf

  Sources   Download

MIT

The Requires

 

php pdf pdf merge pdf concat

03/10 2017

1.0.0

1.0.0.0 https://github.com/fheider/pdfmerger

Lib to merge multiple pdf

  Sources   Download

MIT

The Requires

 

php pdf pdf merge pdf concat