From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 10:58:46 +0000 (+0200) Subject: wip #5184 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=10b826a44d6014cce68bf2465f76af440aed361e;p=fluidbook_tools.git wip #5184 @0.25 --- diff --git a/src/Document.php b/src/Document.php index 6086d7b..05fa003 100644 --- a/src/Document.php +++ b/src/Document.php @@ -16,6 +16,9 @@ class Document extends \Cubist\PDF\Document public function processPages($files, $pages, $sync = false) { start_measure('Process pages (doc)'); + if (!$sync) { + $pages = array_reverse($pages, true); + } foreach ($pages as $i) { $this->processPage($i, $files, $sync); }