From 11e3c908fed1cd75ddcd0da209f424138661fa29 Mon Sep 17 00:00:00 2001 From: azercon <59962763+azercon@users.noreply.github.com> Date: Fri, 10 Jul 2020 11:29:49 +0300 Subject: [PATCH] Implement getFiles() method Retrieve pending merge file list, to able to perform check before merge() and avoid exception("No PDFs to merge.") --- Classes/PDFMerger.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Classes/PDFMerger.php b/Classes/PDFMerger.php index 1161bb9..49a1ae1 100755 --- a/Classes/PDFMerger.php +++ b/Classes/PDFMerger.php @@ -62,6 +62,15 @@ public function addPDF($filepath, $pages = 'all') return $this; } + /** + * Get included files list + * @return array + */ + public function getFiles() + { + return $this->_files; + } + /** * Merges your provided PDFs and outputs to specified location. * @param $outputmode