Skip to content

TCPDI-merger. Merge PDF files using the TCPDI library.

Notifications You must be signed in to change notification settings

rcamposp/tcpdi-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcpdi-merger

TCPDI-merger. Merge PDF files using the TCPDI library.

###Make it work!

  1. composer require rcamposp/tcpdi-merger
  2. Copy the example directory.
  3. Run it! php example/test-php.php

###Example code

<?php

    require 'vendor/autoload.php';

    use rcamposp\tcpdi_merger\MyTCPDI;
    use rcamposp\tcpdi_merger\Merger;            

    $m = new Merger(true);
    $m->addFromFile("example/A.pdf");
    $m->addFromFile("example/lorem.pdf");
    $m->addFromFile("example/PDF17.pdf");
    $m->addFromFile("example/PDF16.pdf");
    $m->merge();
    $m->save("example/merged-document.pdf");

?>

About

TCPDI-merger. Merge PDF files using the TCPDI library.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages