]> git.sur5r.net Git - pdfstitch/commitdiff
Warn if output layout is too small
authorJakob Haufe <sur5r@sur5r.net>
Wed, 22 Jun 2022 08:48:29 +0000 (10:48 +0200)
committerJakob Haufe <sur5r@sur5r.net>
Wed, 22 Jun 2022 08:48:29 +0000 (10:48 +0200)
pdfstitch

index 3fb8b3347dc79585dcb0d7f147c1c373db80837b..cc5b8330c1057206779e2f40fcc13c2aa9174a0c 100755 (executable)
--- a/pdfstitch
+++ b/pdfstitch
@@ -133,6 +133,11 @@ else
     my $meta = YAML::LoadFile($infile);
     my $inpdf = PDF::API2->open($meta->{input});
 
+    if($meta->{pageorder} > $meta->{x} * $meta->{y})
+    {
+        print "WARNING: Output layout is not big enough for all wanted pages.\n";
+    }
+
     if($preview or $crop)
     {
         my $previewpdf = PDF::API2->new() if $preview;