Skip to content

Instantly share code, notes, and snippets.

View mthomas88's full-sized avatar

bitsandbarks88 mthomas88

View GitHub Profile
@mthomas88
mthomas88 / merge-pdf.php
Last active January 29, 2016 14:29
Quick dirty script you can use in a job if you need to merge PDF's together.
<?php
namespace PDFMerge;
use Symfony\Component\Process\Process;
use Symfony\Component\Process\Exception\ProcessFailedException;
// new empty array to fill with appendix documents.
$doc_array = [];
// add to the document array for each appendix item.
foreach($documents as $doc) {