diff options
author | cos <cos> | 2015-02-21 16:17:44 +0100 |
---|---|---|
committer | cos <cos> | 2015-04-04 13:28:19 +0200 |
commit | fc4473cc51ff5e7b76b3c9f0a7b47c5ba165e1ab (patch) | |
tree | d21a2fdd7784e25c2e926b0efe48abe60d49ed00 | |
parent | e98d984bb167d8d09cdab1a810e9c3536af972de (diff) | |
download | mat-fc4473cc51ff5e7b76b3c9f0a7b47c5ba165e1ab.zip |
Add skip variable to sheetprint, to avoid label paper waste.
-rwxr-xr-x | sheetprint | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); |