2017 © Pedro Peláez
 

library pdfmerger

Library for merging multiple PDFs

image

erc/pdfmerger

Library for merging multiple PDFs

  • Friday, February 17, 2017
  • by everright
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,839 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 78 % Grown

The README.md

pdfmerger

PHP library for merging multiple PDFs using FPDI, (*1)

Based on PDFMerger created by Jarrod Nettles December 2009, (*2)

https://pdfmerger.codeplex.com/, (*3)

Class for easily merging PDFs (or specific pages of PDFs) together into one. Output to a file, browser, download, or return as a string., (*4)

Unfortunately, this class does not preserve many of the enhancements your original PDF might contain. It treats your PDF page as an image and then concatenates them all together., (*5)

Note that your PDFs are merged in the order that you provide them using the addPDF function, same as the pages., (*6)

If you put pages 12-14 before 1-5 then 12-15 will be placed first in the output., (*7)

  • Uses FPDI 1.4.4 from Setasign
  • Uses FPDF 1.6 by Olivier Plathey with FPDF_TPL extension 1.2.3 by Setasign
  • FPDI extension to preserve external hyperlinks https://gist.github.com/andreyvit/2020422

All of these packages are free and open source software, bundled with this class for ease of use., (*8)

Installation

Install using composer., (*9)

composer require erc/pdfmerger

Usage

```php use erc\pdfmerger\PDFMerger;, (*10)

$pdf = new PDFMerger; try { $pdf->addPDF('a.pdf') ->addPDF('b.pdf') ->addPDF('c.pdf') ->merge('file', 'd.pdf'); } catch(Exception $e){ echo $e->getMessage(); }, (*11)

The Versions

17/02 2017

dev-master

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

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by everright chen

merge pdf

17/02 2017

0.0.1

0.0.1.0 https://github.com/everright/pdfmerger

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by everright chen

merge pdf