]> _ Git - fluidbook_tools.git/commitdiff
wip #5184 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 10:58:46 +0000 (12:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Mar 2022 10:58:46 +0000 (12:58 +0200)
src/Document.php

index 6086d7b70cd067afe0dac75d84d4acadb2cc1740..05fa00375734b0f4bcd95b29b05476a75bf94ff3 100644 (file)
@@ -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);
         }