summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2015-02-21 16:17:44 +0100
committercos <cos>2015-04-04 13:28:19 +0200
commitfc4473cc51ff5e7b76b3c9f0a7b47c5ba165e1ab (patch)
treed21a2fdd7784e25c2e926b0efe48abe60d49ed00
parente98d984bb167d8d09cdab1a810e9c3536af972de (diff)
downloadmat-fc4473cc51ff5e7b76b3c9f0a7b47c5ba165e1ab.zip
Add skip variable to sheetprint, to avoid label paper waste.
-rwxr-xr-xsheetprint5
1 files changed, 3 insertions, 2 deletions
diff --git a/sheetprint b/sheetprint
index 5ee0a38..f0052f5 100755
--- a/sheetprint
+++ b/sheetprint
@@ -56,13 +56,14 @@ for ( my $i = 1; $i < 210; $i++) {
}
}
+my $skip = 2;
my $x = mm2dots(25);
-my $y = mm2dots(30);
+my $y = mm2dots(32) + $skip * mm2dots(25);
for my $filename ( `ls label-??????????.png` ) {
my $label = GD::Image->newFromPng($filename);
$a4->copy($label, $x, $y, 0, 0, $label->width(), $label->height());
- $y += mm2dots(30);
+ $y += mm2dots(25);
}
open(PNGFILE, ">a4.png");