]> git.sur5r.net Git - pdfstitch/commitdiff
Order page offsets numerically in YAML file v0.5
authorJakob Haufe <sur5r@sur5r.net>
Tue, 8 Aug 2017 12:57:44 +0000 (14:57 +0200)
committerJakob Haufe <sur5r@sur5r.net>
Tue, 8 Aug 2017 12:57:44 +0000 (14:57 +0200)
This is a convenience change only, makes it a little easier to navigate
that file.

pdfstitch

index eb82b6273805221e41d9df376ec2fcfc3e53b650..9a6cf9b72216d35bcad9589cd334768658682959 100755 (executable)
--- a/pdfstitch
+++ b/pdfstitch
@@ -124,6 +124,7 @@ if($genmeta)
     }
 
     YAML::Bless($meta)->keys(['input','x','y','width','height','columns','rows', 'pageorder','pageoffsets']);
+    YAML::Bless($meta->{pageoffsets})->keys([1..$pdf->pages]);
     YAML::DumpFile($outfile,$meta);
 }
 else