2017 © Pedro PelĂĄez
 

library libmergepdf

Library for merging multiple PDFs

image

iio/libmergepdf

Library for merging multiple PDFs

  • Tuesday, June 12, 2018
  • by hanneskod
  • Repository
  • 11 Watchers
  • 117 Stars
  • 601,341 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 25 Forks
  • 1 Open issues
  • 12 Versions
  • 12 % Grown

The README.md

libmergepdf

Packagist Version Build Status Quality Score, (*1)

PHP library for merging multiple PDFs., (*2)

Installation

composer require iio/libmergepdf

Usage

Append the first ten pages of bar.pdf to foo.pdf:, (*3)

use iio\libmergepdf\Merger;
use iio\libmergepdf\Pages;

$merger = new Merger;
$merger->addFile('foo.pdf');
$merger->addFile('bar.pdf', new Pages('1-10'));
$createdPdf = $merger->merge();

Bulk add files from an iterator:, (*4)

use iio\libmergepdf\Merger;

$merger = new Merger;
$merger->addIterator(['A.pdf', 'B.pdf']);
$createdPdf = $merger->merge();

Merging pdfs of version 1.5 and later

The default FPDI driver is not able handle compressed pdfs of version 1.5 or later. Circumvent this limitation by using the slightly more experimental TCPDI driver., (*5)

use iio\libmergepdf\Merger;
use iio\libmergepdf\Driver\TcpdiDriver;

$merger = new Merger(new TcpdiDriver);

Using an immutable merger

Immutability may be achieved by using a driver directly., (*6)

use iio\libmergepdf\Driver\Fpdi2Driver;
use iio\libmergepdf\Source\FileSource;
use iio\libmergepdf\Pages;

$merger = new Fpdi2Driver;

$createdPdf = $merger->merge(
    new FileSource('foo.pdf'),
    new FileSource('bar.pdf', new Pages('1-10'))
);

Known issues

  • Links and other content outside a page content stream is removed at merge. This is due to limitations in FPDI and not possible to resolve with the current strategy. For more information see FPDI.
  • TCPDI_ (as used in the _TcpdiDriver for merging pdfs with newer features) does not seem to be maintained. This makes mergeing fragile for certain kinds of files, and error messages are often all but helpful. This package will not be able to fix issues in TCPDI. The long term solution is to switch to a different backend. Suggestions are very welcomed!

The Versions

12/06 2018

dev-master

9999999-dev https://github.com/hanneskod/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

11/12 2017

3.1.1

3.1.1.0 https://github.com/hanneskod/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

31/10 2017

3.1.0

3.1.0.0 https://github.com/hanneskod/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

02/03 2016

3.0.0

3.0.0.0 https://github.com/hanneskod/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

17/11 2014

2.4.0

2.4.0.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

07/07 2014

2.3.2

2.3.2.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

WTFPL

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

18/11 2013

2.3.1

2.3.1.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

The Development Requires

by Hannes ForsgÄrd

merge pdf concatenate

18/11 2013

2.3.0

2.3.0.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

merge pdf concatenate

26/10 2013

2.2.0

2.2.0.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

merge pdf concatenate

14/03 2013

2.1.1

2.1.1.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

pdf

31/01 2013

2.1.0

2.1.0.0 https://github.com/iio/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

pdf

02/10 2012

2.0.0

2.0.0.0 https://github.com/itbz/libmergepdf

Library for merging multiple PDFs

  Sources   Download

MIT

The Requires

 

by Hannes ForsgÄrd

pdf